Skip to content

Commit

Permalink
Fix: put blocking call to Start() in new goroutine (#2614)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse authored May 10, 2024
1 parent 3f0b5ae commit 85a2a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/rfq/api/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewAPI(
)
roleCache := roles[chainID]

roleCache.Start()
go roleCache.Start()
go func() {
<-ctx.Done()
roleCache.Stop()
Expand Down

0 comments on commit 85a2a62

Please sign in to comment.