mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
fix typo (#1829)
This commit is contained in:
parent
54ef62f9b7
commit
704212eaae
@ -417,7 +417,7 @@ func ExampleClient_Watch() {
|
|||||||
// Actual opperation (local in optimistic lock).
|
// Actual opperation (local in optimistic lock).
|
||||||
n++
|
n++
|
||||||
|
|
||||||
// Operation is commited only if the watched keys remain unchanged.
|
// Operation is committed only if the watched keys remain unchanged.
|
||||||
_, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
|
_, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
|
||||||
pipe.Set(ctx, key, n, 0)
|
pipe.Set(ctx, key, n, 0)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user