Skip to content

Commit

Permalink
less stupid code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jan 24, 2025
1 parent 007d62a commit 9a6e6f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spv/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,10 @@ func (s *Syncer) Run(ctx context.Context) (err error) {
// Run wallet background goroutines (currently, this just runs
// mixclient).
err := s.wallet.Run(ctx)
if ctxErr := ctx.Err(); err == nil && ctxErr != nil {
return ctxErr // Cancels gctx, if outer ctx has errored/canceled.
}
if err != nil {
return err
}
// Cancel gctx, when outer ctx has errored/canceled.
<-ctx.Done()
return ctx.Err()
})
Expand Down

0 comments on commit 9a6e6f8

Please sign in to comment.