more logs
This commit is contained in:
@@ -408,10 +408,10 @@ func (p *SyncedPool) AddRemote(host string) {
|
||||
|
||||
host_pool, err := netpool.New(func() (net.Conn, error) {
|
||||
return net.Dial("tcp", fmt.Sprintf("%s:1338", host))
|
||||
}, netpool.WithMaxPool(128), netpool.WithMinPool(16))
|
||||
}, netpool.WithMaxPool(128), netpool.WithMinPool(0))
|
||||
|
||||
if err != nil {
|
||||
log.Printf("Error creating pool: %v\n", err)
|
||||
log.Printf("Error creating host pool: %v\n", err)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -432,7 +432,12 @@ func (p *SyncedPool) AddRemote(host string) {
|
||||
|
||||
cart_pool, err := netpool.New(func() (net.Conn, error) {
|
||||
return net.Dial("tcp", fmt.Sprintf("%s:1337", host))
|
||||
}, netpool.WithMaxPool(1024), netpool.WithMinPool(5))
|
||||
}, netpool.WithMaxPool(128), netpool.WithMinPool(0))
|
||||
|
||||
if err != nil {
|
||||
log.Printf("Error creating grain pool: %v\n", err)
|
||||
return
|
||||
}
|
||||
|
||||
remote := RemoteHost{
|
||||
HostPool: cart_pool,
|
||||
|
||||
Reference in New Issue
Block a user