bsm / redislock

Simplified distributed locking implementation using Redis
Other
1.45k stars 157 forks source link

README Examples Can't run #53

Closed jimu-os closed 1 year ago

jimu-os commented 1 year ago

lock, err := locker.Obtain(ctx, "my-key", 100*time.Millisecond, nil) if err == redislock.ErrNotObtained { fmt.Println("Could not obtain lock!") } else if err != nil { log.Fatalln(err) }

dim commented 1 year ago

sorry, I am not following, what's the problem?