set nil for the channel

This commit is contained in:
Yasuhiro Matsumoto
2024-05-28 10:43:56 +09:00
parent a5d0bdf0e1
commit d8eaff6611

View File

@@ -155,6 +155,7 @@ func (oss *OpensearchStorage) QueryEvents(ctx context.Context, filter nostr.Filt
}
if ch != nil {
close(ch)
ch = nil
}
}()