spanner: add TODO about multiple clientconns
@@ -70,8 +70,11 @@ func validDatabaseName(db string) error {
type Client struct {
// rr must be accessed through atomic operations.
rr uint32
+ // TODO(deklerk): we should not keep multiple ClientConns / SpannerClients. Instead, we should
+ // have a single ClientConn that has many connections: https://github.com/googleapis/google-api-go-client/blob/003c13302b3ea5ae44344459ba080364bd46155f/internal/pool.go
conns []*grpc.ClientConn
clients []sppb.SpannerClient
+
database string
// Metadata to be sent with each request.
md metadata.MD
