mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-05 22:56:57 +02:00
CLEANUP: peers: remove unused peer_session_target()
Since commit 7293eb68
("MEDIUM: peers: use server as stream target") peer
session target always point to server in order to benefit from existing
server transport options.
Thanks to that, it is no longer necessary to have peer_session_target()
helper function, because all it does is return the pointer to the
server object. Let's get rid of that
This commit is contained in:
parent
1e48ec7f6c
commit
cf8ba60c88
@ -40,10 +40,5 @@ int peers_register_table(struct peers *, struct stktable *table);
|
||||
void peers_setup_frontend(struct proxy *fe);
|
||||
void peers_register_keywords(struct peers_kw_list *pkwl);
|
||||
|
||||
static inline enum obj_type *peer_session_target(struct peer *p, struct stream *s)
|
||||
{
|
||||
return &p->srv->obj_type;
|
||||
}
|
||||
|
||||
#endif /* _HAPROXY_PEERS_H */
|
||||
|
||||
|
@ -1080,7 +1080,7 @@ static int peer_session_init(struct appctx *appctx)
|
||||
s->scb->dst = addr;
|
||||
s->scb->flags |= (SC_FL_RCV_ONCE|SC_FL_NOLINGER);
|
||||
s->flags = SF_ASSIGNED;
|
||||
s->target = peer_session_target(peer, s);
|
||||
s->target = &peer->srv->obj_type;
|
||||
|
||||
s->do_log = NULL;
|
||||
s->uniq_id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user