Skip to content

Commit

Permalink
fix: remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Oct 25, 2024
1 parent b64c8cf commit d0b0354
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions service/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ func (svc *service) startAllExistingAppsWalletSubscriptions(ctx context.Context,

for _, app := range apps {
go func(app db.App) {
if app.WalletPubkey != "" {
err := svc.startAppWalletSubscription(ctx, relay, app.WalletPubkey, "")
if err != nil {
logger.Logger.WithError(err).WithFields(logrus.Fields{
"app_id": app.ID}).Error("Failed to subscribe to wallet")
}
err := svc.startAppWalletSubscription(ctx, relay, app.WalletPubkey, "")
if err != nil {
logger.Logger.WithError(err).WithFields(logrus.Fields{
"app_id": app.ID}).Error("Failed to subscribe to wallet")
}
}(app)
}
Expand Down

0 comments on commit d0b0354

Please sign in to comment.