From 0334304f12d2e85dfe3c8e780ad932b58f2c6c5f Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Thu, 3 Oct 2024 17:02:53 +0200 Subject: [PATCH] fix: reverte unwanted changes Signed-off-by: D4ryl00 --- contact_request_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact_request_manager.go b/contact_request_manager.go index 3be1e1de..60cf79cc 100644 --- a/contact_request_manager.go +++ b/contact_request_manager.go @@ -137,8 +137,8 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { c.muManager.Unlock() // enqueue all contact with the `ToRequest` state - if err := c.enqueueRequest(ctx, contact); err != nil { - for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactState_ContactStateToRequest) { + for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactState_ContactStateToRequest) { + if err := c.enqueueRequest(ctx, contact); err != nil { c.logger.Warn("unable to enqueue contact request", logutil.PrivateBinary("pk", contact.Pk), zap.Error(err)) } }