Skip to content

Commit

Permalink
Fix data race in server (#935)
Browse files Browse the repository at this point in the history
close #913
  • Loading branch information
hongyunyan authored Jan 21, 2025
1 parent 5b7c12a commit c367411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (c *server) Run(ctx context.Context) error {
// start tcp server
g.Go(func() error {
log.Info("tcp server start to run")
err = c.tcpServer.Run(ctx)
err := c.tcpServer.Run(ctx)
if err != nil {
log.Error("tcp server exited", zap.Error(errors.Trace(err)))
}
Expand Down

0 comments on commit c367411

Please sign in to comment.