Skip to content

Commit

Permalink
Call underlying Unregister function
Browse files Browse the repository at this point in the history
We need to call the underlying Unregister function in order to be able to Unregister connections in a MultiConnectionPool.
  • Loading branch information
maryryang2 authored May 24, 2023
1 parent f062694 commit 9dc76a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net2/base_connection_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9dc76a9

Please sign in to comment.