diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
commit | 8f7388042c433049b2b49c306caa80378e635c4d (patch) | |
tree | 87d1dff90a059f05349c1a326849ad4f459b8259 /src/exchange/taler-exchange-httpd.c | |
parent | 5b2efa2b0694f2e1d16af15c7c47cbd26f7c64c1 (diff) | |
download | exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.gz exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.bz2 exchange-8f7388042c433049b2b49c306caa80378e635c4d.zip |
fix indent
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index fe484979d..f0059736f 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -417,7 +417,8 @@ handle_mhd_request (void *cls, struct GNUNET_AsyncScopeSave old_scope; const char *correlation_id = NULL; - if (NULL == ecls) { + if (NULL == ecls) + { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling new request\n"); /* We're in a new async scope! */ ecls = *con_cls = GNUNET_new (struct ExchangeHttpRequestClosure); @@ -435,9 +436,7 @@ handle_mhd_request (void *cls, } inner_cls = &ecls->opaque_post_parsing_context; - GNUNET_async_scope_enter (&ecls->async_scope_id, &old_scope); - if (NULL != correlation_id) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling request (%s) for URL '%s', correlation_id=%s\n", @@ -462,6 +461,8 @@ handle_mhd_request (void *cls, (0 == strcasecmp (method, rh->method)) ) ) { + /* FIXME: consider caching 'rh' in '**connection_cls' to + avoid repeated lookup! */ ret = rh->handler (rh, connection, inner_cls, @@ -477,7 +478,6 @@ handle_mhd_request (void *cls, upload_data, upload_data_size); GNUNET_async_scope_restore (&old_scope); - return ret; } |