From 8af910aa8fd096210b31c978fd3ba48e80cc708d Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 6 Jan 2025 21:28:31 +0900 Subject: [PATCH] fixed a wrong endpoint path --- client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.go b/client.go index 2221788..d8b6e5d 100644 --- a/client.go +++ b/client.go @@ -1124,8 +1124,7 @@ func NewClient(ctx context.Context, logger Logger, ctl_addrs []string, ctl_prefi c.ctl_prefix = ctl_prefix c.ctl_mux = http.NewServeMux() - //c.ctl_mux.Handle(c.ctl_prefix + "/_ctl/client-conns", c.wrap_http_handler(&client_ctl_client_conns{c: &c, id: "ctl"})) - c.ctl_mux.Handle(c.ctl_prefix + "/client-conns", + c.ctl_mux.Handle(c.ctl_prefix + "/_ctl/client-conns", c.wrap_http_handler(&client_ctl_client_conns{client_ctl{c: &c, id: "ctl"}})) c.ctl_mux.Handle(c.ctl_prefix + "/_ctl/client-conns/{conn_id}", c.wrap_http_handler(&client_ctl_client_conns_id{client_ctl{c: &c, id: "ctl"}}))