Skip to content

Commit

Permalink
Fix fmt placeholder error
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyu234 authored and felipejfc committed Aug 25, 2023
1 parent 56f2e0b commit fe4ef7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/etcd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func (sd *etcdServiceDiscovery) SyncServers(firstSync bool) error {
servers := parallelGetter.waitAndGetResult()

for _, server := range servers {
logger.Log.Debugf("adding server %s", server)
logger.Log.Debugf("adding server %v", server)
sd.addServer(server)
}

Expand Down
2 changes: 1 addition & 1 deletion cluster/nats_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (ns *NatsRPCServer) handleMessages() {
}
subsChanLen := float64(len(ns.subChan))
maxPending = math.Max(float64(maxPending), subsChanLen)
logger.Log.Debugf("subs channel size: %d, max: %d, dropped: %d", subsChanLen, maxPending, dropped)
logger.Log.Debugf("subs channel size: %v, max: %v, dropped: %v", subsChanLen, maxPending, dropped)
req := &protos.Request{}
// TODO: Add tracing here to report delay to start processing message in spans
err = proto.Unmarshal(msg.Data, req)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewRoom(app pitaya.Pitaya) *Room {
func (r *Room) AfterInit() {
r.timer = pitaya.NewTimer(time.Minute, func() {
count, err := r.app.GroupCountMembers(context.Background(), "room")
logger.Log.Debugf("UserCount: Time=> %s, Count=> %d, Error=> %q", time.Now().String(), count, err)
logger.Log.Debugf("UserCount: Time=> %s, Count=> %d, Error=> %v", time.Now().String(), count, err)
})
}

Expand Down

0 comments on commit fe4ef7d

Please sign in to comment.