mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Rename Multi to Tx to better reflect the purpose. Fixes #194.
This commit is contained in:
@ -60,7 +60,7 @@ func (c *ClusterClient) getClients() map[string]*Client {
|
||||
|
||||
// Watch creates new transaction and marks the keys to be watched
|
||||
// for conditional execution of a transaction.
|
||||
func (c *ClusterClient) Watch(keys ...string) (*Multi, error) {
|
||||
func (c *ClusterClient) Watch(keys ...string) (*Tx, error) {
|
||||
addr := c.slotMasterAddr(hashtag.Slot(keys[0]))
|
||||
client, err := c.getClient(addr)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user