diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-07 16:40:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-07 16:40:36 +0200 |
commit | 154043468c0de4fb87fb66eebf5110f8ff909ea5 (patch) | |
tree | fda0219c7f7857318b83f1ca1bc7247a50ee107e /src/backend/taler-merchant-httpd_private-get-orders-ID.c | |
parent | 8e703ec55501282f5fade998d8ce173f81f5fa49 (diff) |
-code cleanup: use new GNUNET_TIME functions
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-orders-ID.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c index 22eedadc..fa685663 100644 --- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -1067,8 +1067,7 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, if ( (! paid) && (! order_only) ) { - if (0 != GNUNET_TIME_absolute_get_remaining ( - gorc->sc.long_poll_timeout).rel_value_us) + if (GNUNET_TIME_absolute_is_future (gorc->sc.long_poll_timeout)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Suspending GET /private/orders/%s\n", @@ -1122,8 +1121,7 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh, } if ( (! paid) && - (0 != GNUNET_TIME_absolute_get_remaining ( - gorc->sc.long_poll_timeout).rel_value_us) ) + (GNUNET_TIME_absolute_is_future (gorc->sc.long_poll_timeout)) ) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Suspending GET /private/orders/%s\n", |