We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c172a commit f3ded6fCopy full SHA for f3ded6f
cluster/gossiper.go
@@ -341,7 +341,7 @@ func (g *Gossiper) GetActorCount() map[string]int64 {
341
clusterKinds := g.cluster.GetClusterKinds()
342
for _, kindName := range clusterKinds {
343
kind := g.cluster.GetClusterKind(kindName)
344
- m[kindName] = int64(kind.count)
+ m[kindName] = int64(kind.Count())
345
}
346
g.cluster.Logger().Debug("Actor Count", slog.Any("count", m))
347
cluster/kind.go
@@ -55,3 +55,7 @@ func (ak *ActivatedKind) Inc() {
55
func (ak *ActivatedKind) Dec() {
56
atomic.AddInt32(&ak.count, -1)
57
58
+
59
+func (ak *ActivatedKind) Count() int32 {
60
+ return atomic.LoadInt32(&ak.count)
61
+}
0 commit comments