From 942d68377687957d1cbfe9a1bfc697b6b14cb0da Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Sat, 4 May 2024 18:35:45 +0200 Subject: [PATCH] clean up 2 --- services/rfq/api/rest/server.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/services/rfq/api/rest/server.go b/services/rfq/api/rest/server.go index f17463aada..03e2693edc 100644 --- a/services/rfq/api/rest/server.go +++ b/services/rfq/api/rest/server.go @@ -82,14 +82,11 @@ func NewAPI( roleCache := roles[chainID] roleCache.Start() - } - - go func() { - <-ctx.Done() - for _, roleCache := range roles { + go func() { + <-ctx.Done() roleCache.Stop() - } - }() + }() + } return &QuoterAPIServer{ cfg: cfg,