Skip to content

Commit

Permalink
fix: reverte unwanted changes
Browse files Browse the repository at this point in the history
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
  • Loading branch information
D4ryl00 committed Oct 3, 2024
1 parent 7c74091 commit 0334304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contact_request_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit 0334304

Please sign in to comment.