Skip to content

Commit

Permalink
fixes previous
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMct committed Apr 22, 2024
1 parent 06c4db4 commit 61bfa83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocols/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (s *Executor) Run(ctx context.Context, trans Transport) error { // TODO: ca
return nil
}

// runAsAggregator runs the protocol as an aggregator/coordinator. The caller must hold the connectedNodesMu lock. // TODO: check if we can do without that
// runAsAggregator runs the protocol as an aggregator/coordinator. The caller must write hold the connectedNodesMu lock. // TODO: check if we can do without that
func (s *Executor) runAsAggregator(ctx context.Context, sess *sessions.Session, pd Descriptor) (aggOut AggregationOutput) {

if !s.isAggregatorFor(pd) {
Expand Down Expand Up @@ -354,7 +354,7 @@ func (s *Executor) runAsAggregator(ctx context.Context, sess *sessions.Session,
disconnected <- nid
}
}
s.connectedNodesMu.RUnlock()
s.connectedNodesMu.Unlock()
s.runningProtoMu.Unlock()

clearProtocol := func() {
Expand Down

0 comments on commit 61bfa83

Please sign in to comment.