WIP test but i think im done
This commit is contained in:
@@ -149,9 +149,10 @@ func (c Config) WithConn(hashKey string, foo func(net.Conn) error) error {
|
||||
log.Printf("errored with conn %v: %v", hashIdx, err)
|
||||
forwardConn.Close()
|
||||
return err
|
||||
} else {
|
||||
log.Printf("release conn %v", hashIdx)
|
||||
forward.Put(forwardConn)
|
||||
}
|
||||
|
||||
log.Printf("release conn %v", hashIdx)
|
||||
forward.Put(forwardConn)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user