mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
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