Skip to content

Commit

Permalink
defer RUnlock
Browse files Browse the repository at this point in the history
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
  • Loading branch information
skyerus committed Dec 6, 2022
1 parent e96128c commit d9ce920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/connect_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ func (s *ConnectService) EventStream(

func (s *ConnectService) Notify(n Notification) {
s.eventingConfiguration.mu.RLock()
defer s.eventingConfiguration.mu.RUnlock()
for _, send := range s.eventingConfiguration.subs {
send <- n
}
s.eventingConfiguration.mu.RUnlock()
}

func (s *ConnectService) ResolveBoolean(
Expand Down

0 comments on commit d9ce920

Please sign in to comment.