From 556ffc588b8e4cc2b0f62b8950fd22d718041c2e Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 5 Oct 2016 17:53:27 -0700 Subject: [PATCH] Adds comment about SessionOpts. --- api/lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/lock.go b/api/lock.go index 8e85c5f604..9f9845a432 100644 --- a/api/lock.go +++ b/api/lock.go @@ -73,8 +73,8 @@ type LockOptions struct { Value []byte // Optional, value to associate with the lock Session string // Optional, created if not specified SessionOpts *SessionEntry // Optional, options to use when creating a session - SessionName string // Optional, defaults to DefaultLockSessionName - SessionTTL string // Optional, defaults to DefaultLockSessionTTL + SessionName string // Optional, defaults to DefaultLockSessionName (ignored if SessionOpts is given) + SessionTTL string // Optional, defaults to DefaultLockSessionTTL (ignored if SessionOpts is given) MonitorRetries int // Optional, defaults to 0 which means no retries MonitorRetryTime time.Duration // Optional, defaults to DefaultMonitorRetryTime LockWaitTime time.Duration // Optional, defaults to DefaultLockWaitTime