summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2020-03-04 14:04:08 +0300
committerIgor Sysoev <igor@sysoev.ru>2020-03-04 14:04:08 +0300
commit794248090a74f31cbfcf24ea8c835df2d4d21073 (patch)
tree56f69fe30e4b9c46fc23aba52cc3fb7b1970f363 /src/nxt_upstream.c
parent643d4383fa7db466e1d80c7d8c350da4ec043f2b (diff)
downloadunit-794248090a74f31cbfcf24ea8c835df2d4d21073.tar.gz
unit-794248090a74f31cbfcf24ea8c835df2d4d21073.tar.bz2
Legacy upstream code removed.
Diffstat (limited to '')
-rw-r--r--src/nxt_upstream.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/nxt_upstream.c b/src/nxt_upstream.c
index e1615120..3899a3ce 100644
--- a/src/nxt_upstream.c
+++ b/src/nxt_upstream.c
@@ -5,39 +5,3 @@
*/
#include <nxt_main.h>
-
-
-typedef struct {
- void (*peer_get)(nxt_upstream_peer_t *up);
- void (*peer_free)(nxt_upstream_peer_t *up);
-} nxt_upstream_name_t;
-
-
-static const nxt_upstream_name_t nxt_upstream_names[] = {
-
- { "round_robin", &nxt_upstream_round_robin },
-};
-
-
-void
-nxt_upstream_create(nxt_upstream_peer_t *up)
-{
- /* TODO: dynamic balancer add & lvlhsh */
- nxt_upstream_names[0].create(up);
-}
-
-
-void
-nxt_upstream_peer(nxt_upstream_peer_t *up)
-{
- nxt_upstream_t *u;
-
- u = up->upstream;
-
- if (u != NULL) {
- u->peer_get(up);
- return;
- }
-
- nxt_upstream_create(up);
-}