]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: peer: Moved http_client_peer_reset_backoff_timer() function.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 18 Dec 2016 18:27:05 +0000 (19:27 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 7 Dec 2017 16:40:45 +0000 (18:40 +0200)
This is a preparation for a subsequent change.

src/lib-http/http-client-peer.c

index ed6f0de6aac98b1212f47543c34fe9f951db38d9..ecb3f7355604c9f289d9f1329b6b4c4d83aedbce 100644 (file)
@@ -276,6 +276,14 @@ http_client_peer_increase_backoff_timer(struct http_client_peer *peer)
                peer->backoff_time_msecs = set->connect_backoff_max_time_msecs;
 }
 
+static void
+http_client_peer_reset_backoff_timer(struct http_client_peer *peer)
+{
+       peer->backoff_time_msecs = 0;
+
+       timeout_remove(&peer->to_backoff);
+}
+
 static struct http_client_peer *
 http_client_peer_create(struct http_client *client,
                              const struct http_client_peer_addr *addr)
@@ -470,14 +478,6 @@ http_client_peer_do_connect(struct http_client_peer *peer,
        }
 }
 
-static void
-http_client_peer_reset_backoff_timer(struct http_client_peer *peer)
-{
-       peer->backoff_time_msecs = 0;
-
-       timeout_remove(&peer->to_backoff);
-}
-
 static void
 http_client_peer_connect(struct http_client_peer *peer, unsigned int count)
 {