Skip to content

Commit

Permalink
fix: throttle debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
qazwsxedckll committed Dec 30, 2023
1 parent 742c858 commit b84e0e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func newGossiper(cl *Cluster, opts ...Option) (*Gossiper, error) {
}

func (g *Gossiper) GetState(key string) (map[string]*GossipKeyValue, error) {
g.cluster.Logger().Debug(fmt.Sprintf("Gossiper getting state from %s", g.pid))
if g.throttler() == actor.Open {
g.cluster.Logger().Debug(fmt.Sprintf("Gossiper getting state from %s", g.pid))
}

msg := NewGetGossipStateRequest(key)
timeout := g.cluster.Config.TimeoutTime
Expand Down

0 comments on commit b84e0e4

Please sign in to comment.