Skip to content

Commit

Permalink
lnd: use errors.Is for error comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Nov 29, 2024
1 parent 5acb805 commit 3b94460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,

dbs, cleanUp, err := implCfg.DatabaseBuilder.BuildDatabase(ctx)
switch {
case err == channeldb.ErrDryRunMigrationOK:
case errors.Is(err, channeldb.ErrDryRunMigrationOK):
ltndLog.InfoS(ctx, "Exiting due to BuildDatabase error",
slog.Any("err", err))
return nil
Expand Down

0 comments on commit 3b94460

Please sign in to comment.