Commit f8709482 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix: multiconn s/Conns()/getConns()

@jbenet

must be getConns to avoid clash with private var

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 697453df
......@@ -262,7 +262,7 @@ func (c *MultiConn) ID() string {
return string(ids)
}
func (c *MultiConn) Conns() []Conn {
func (c *MultiConn) getConns() []Conn {
c.RLock()
defer c.RUnlock()
var conns []Conn
......
......@@ -307,11 +307,11 @@ func TestMulticonnClose(t *testing.T) {
ctx := context.Background()
c1, c2 := setupMultiConns(t, ctx)
for _, c := range c1.Conns() {
for _, c := range c1.getConns() {
c.Close()
}
for _, c := range c2.Conns() {
for _, c := range c2.getConns() {
c.Close()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment