feat: 命令行工具

This commit is contained in:
liwei committed 2021-03-23 19:03:46 +08:00
1 parent f150ec23c4
commit 046729bfaa
10 files changed
+195 -31

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ func TestDownloader_Create(t *testing.T) {
var wg sync.WaitGroup
wg.Add(1)
downloader.Listener(func(taskInfo *TaskInfo, status base.Status) {
if status == base.DownloadStatusDone {
downloader.Listener(func(taskInfo *TaskInfo, eventKey base.EventKey) {
if eventKey == base.EventKeyDone {
wg.Done()
}
})