|
|
@@ -5,6 +5,7 @@
|
|
|
package gocql
|
|
|
|
|
|
import (
|
|
|
+ "fmt"
|
|
|
"log"
|
|
|
"sync"
|
|
|
"sync/atomic"
|
|
|
@@ -18,6 +19,10 @@ type cowHostList struct {
|
|
|
mu sync.Mutex
|
|
|
}
|
|
|
|
|
|
+func (c *cowHostList) String() string {
|
|
|
+ return fmt.Sprintf("%+v", c.get())
|
|
|
+}
|
|
|
+
|
|
|
func (c *cowHostList) get() []*HostInfo {
|
|
|
// TODO(zariel): should we replace this with []*HostInfo?
|
|
|
l, ok := c.list.Load().(*[]*HostInfo)
|