mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-13 03:43:41 +00:00
test: enforce async extension API contract (#1452)
This commit is contained in:
13 files changed
+121
-77
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
gopeed.events.onError(async function (ctx) {
|
||||
gopeed.logger.info("url", ctx.task.meta.req.url);
|
||||
gopeed.logger.info("error", ctx.error);
|
||||
ctx.task.setUrl("https://github.com");
|
||||
ctx.task.continue();
|
||||
await ctx.task.setUrl("https://github.com");
|
||||
await ctx.task.continue();
|
||||
});
|
||||
Reference in new issue
Block a user