Skip to content

Commit

Permalink
fix missing wait group increment
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jun 7, 2024
1 parent d2eebb7 commit 9a817eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func (s *server) PushLog(ctx context.Context, req *pb.PushLogRequest) (*pb.PushL
bp.wg.Wait()
if s.peer.db.Events().DAGMerges.HasValue() {
wg := &sync.WaitGroup{}
wg.Add(1)
s.peer.db.Events().DAGMerges.Value().Publish(events.DAGMerge{
Cid: cid,
SchemaRoot: string(req.Body.SchemaRoot),
Expand Down

0 comments on commit 9a817eb

Please sign in to comment.