From 9dc76a9453eb5b1440de3c0822a02bedf1e4ca11 Mon Sep 17 00:00:00 2001 From: maryryang2 <40969804+maryryang2@users.noreply.github.com> Date: Wed, 24 May 2023 08:38:10 -0500 Subject: [PATCH] Call underlying Unregister function We need to call the underlying Unregister function in order to be able to Unregister connections in a MultiConnectionPool. --- net2/base_connection_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net2/base_connection_pool.go b/net2/base_connection_pool.go index f238dcd..cf3f67b 100644 --- a/net2/base_connection_pool.go +++ b/net2/base_connection_pool.go @@ -109,9 +109,9 @@ func (p *connectionPoolImpl) Register(network string, address string) error { return p.pool.Register(network + " " + address) } -// BaseConnectionPool has nothing to do on Unregister. +// See ConnectionPool for documentation. func (p *connectionPoolImpl) Unregister(network string, address string) error { - return nil + return p.pool.Unregister(network + " " + address) } func (p *connectionPoolImpl) ListRegistered() []NetworkAddress {