Skip to content

Commit

Permalink
fix: mutex lock duplication (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai authored Jul 29, 2024
1 parent 23e8d53 commit 3081fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/dal/api/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *Hub) castSubmissionData(data *dalcommon.OutgoingSubmissionData, symbol
if _, ok := c.clients[conn][*symbol]; ok {
if err := conn.WriteJSON(*data); err != nil {
log.Error().Err(err).Msg("failed to write message")
c.unregister <- conn
go func() { c.unregister <- conn }()
}
}
}
Expand Down

0 comments on commit 3081fa7

Please sign in to comment.