diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-03 09:35:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-03 09:35:48 +0000 |
commit | d3e7a5e40dd2d5409009a30e1e41148c4d852673 (patch) | |
tree | 21ff19580a99137e9b8aec4393feb67f0f1c7b5a /src/fs/test_fs_publish.c | |
parent | ec69ceabc67a72373a2579d871c5fe85676a73bd (diff) | |
download | gnunet-d3e7a5e40dd2d5409009a30e1e41148c4d852673.tar.gz gnunet-d3e7a5e40dd2d5409009a30e1e41148c4d852673.zip |
-use simpler, modern scheduler API
Diffstat (limited to 'src/fs/test_fs_publish.c')
-rw-r--r-- | src/fs/test_fs_publish.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c index 0d621e489..481108d50 100644 --- a/src/fs/test_fs_publish.c +++ b/src/fs/test_fs_publish.c | |||
@@ -87,8 +87,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
87 | GNUNET_TIME_absolute_get_duration | 87 | GNUNET_TIME_absolute_get_duration |
88 | (start).rel_value_us) / 1024)); | 88 | (start).rel_value_us) / 1024)); |
89 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) | 89 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) |
90 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, | 90 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); |
91 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
92 | break; | 91 | break; |
93 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: | 92 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: |
94 | ret = event->value.publish.cctx; | 93 | ret = event->value.publish.cctx; |
@@ -113,8 +112,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
113 | { | 112 | { |
114 | FPRINTF (stderr, "Scheduling abort task for error on `%s'\n", | 113 | FPRINTF (stderr, "Scheduling abort task for error on `%s'\n", |
115 | (const char *) event->value.publish.cctx); | 114 | (const char *) event->value.publish.cctx); |
116 | GNUNET_SCHEDULER_add_continuation (&abort_publish_task, NULL, | 115 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); |
117 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
118 | } | 116 | } |
119 | break; | 117 | break; |
120 | case GNUNET_FS_STATUS_PUBLISH_START: | 118 | case GNUNET_FS_STATUS_PUBLISH_START: |