nip13: defer cancel() calls.
This commit is contained in:
@@ -87,6 +87,7 @@ func DoWork(ctx context.Context, event nostr.Event, targetDifficulty int) (nostr
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
nthreads := runtime.NumCPU()
|
||||
tagCh := make(chan nostr.Tag)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user