Skip to content

Commit

Permalink
fix: remove unnecssary threading
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 2, 2024
1 parent ffb4cd2 commit 091eeaa
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 @@ -127,7 +127,7 @@ func (c *Hub) castSubmissionData(data *dalcommon.OutgoingSubmissionData, symbol
defer wg.Done()
if err := entry.WriteJSON(*data); err != nil {
log.Error().Err(err).Msg("failed to write message")
go func(entry *ThreadSafeClient) { c.unregister <- entry }(entry)
c.unregister <- entry
}
}(client)
}
Expand Down

0 comments on commit 091eeaa

Please sign in to comment.