diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-24 17:53:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-24 17:53:31 +0200 |
commit | f4b19c002aa3ef8054729f7e61254232d575b7a6 (patch) | |
tree | 79e8aed1c7081470a634430b17b2660568c3e4e6 /src/lib/merchant_api_lock_product.c | |
parent | 0b57eac8f3b99941a11f11f35feac1926cd21d31 (diff) | |
download | merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.gz merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.bz2 merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.zip |
toward stesting
Diffstat (limited to 'src/lib/merchant_api_lock_product.c')
-rw-r--r-- | src/lib/merchant_api_lock_product.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/merchant_api_lock_product.c b/src/lib/merchant_api_lock_product.c index ddd5e8e3..9a831508 100644 --- a/src/lib/merchant_api_lock_product.c +++ b/src/lib/merchant_api_lock_product.c @@ -155,8 +155,6 @@ handle_lock_product_finished (void *cls, * * @param ctx the context * @param backend_url HTTP base URL for the backend - * @param instance_id instance to query about its products, - * NULL to query the default instance * @param product_id identifier of the product * @param uuid UUID that identifies the client holding the lock * @param duration how long should the lock be held @@ -169,7 +167,6 @@ struct TALER_MERCHANT_ProductLockHandle * TALER_MERCHANT_product_lock ( struct GNUNET_CURL_Context *ctx, const char *backend_url, - const char *instance_id, const char *product_id, const struct GNUNET_Uuid *uuid, struct GNUNET_TIME_Relative duration, @@ -199,15 +196,9 @@ TALER_MERCHANT_product_lock ( { char *path; - if (NULL == instance_id) - GNUNET_asprintf (&path, - "products/%s/lock", - product_id); - else - GNUNET_asprintf (&path, - "instances/%s/products/%s/lock", - instance_id, - product_id); + GNUNET_asprintf (&path, + "products/%s/lock", + product_id); plh->url = TALER_url_join (backend_url, path, NULL); |