refractor: downloader task action dispatch (#249)

This commit is contained in:
Levi authored and GitHub committed 2023-10-24 16:02:39 +08:00
1 parent ff6c0da262
commit 11befc09bd
5 files changed
+279 -206

No files matched your search

+3
View File
@@ -222,6 +222,9 @@ func (b *BoltStorage) Pop(bucket string, key string, v any) error {
if err != nil {
return err
}
if len(data) == 0 {
return nil
}
return json.Unmarshal(data, v)
}