// GetSessionId is the first request sent by the client to begin a session. The returned // id should be used for all subsequent communications. func (vtg *VTGate) GetSessionId(sessionParams *proto.SessionParams, session *proto.Session) error { scatterConn := NewScatterConn(vtg.balancerMap, vtg.tabletProtocol, sessionParams.TabletType, vtg.retryDelay, vtg.retryCount) session.SessionId = scatterConn.Id vtg.connections.Register(scatterConn.Id, scatterConn) return nil }