Skip to content

Commit

Permalink
Fix: put blocking call to Start() in new goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed May 10, 2024
1 parent 389ee74 commit c27ddc5
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 c27ddc5

Please sign in to comment.