Skip to content

Commit ebd6fed

Browse files
authored
chore(bug): initialize the atomic variable (#1889)
1 parent d6c4dae commit ebd6fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

publisher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func (p *publisher) newSubscriber(c *z.Closer, matches []pb.Match) (subscriber,
129129
matches: matches,
130130
sendCh: ch,
131131
subCloser: c,
132+
active: new(atomic.Uint64),
132133
}
133134
s.active.Store(1)
134135

0 commit comments

Comments
 (0)