loginServer should be a member of lockServer (#3441)

Add a unit test to catch a missing LoginHandler method in lockServer.
This commit is contained in:
Krishnan Parthasarathi
2016-12-13 21:31:47 +05:30
committed by Harshavardhana
parent f53fcdf10e
commit 29d72b84c0
2 changed files with 13 additions and 19 deletions
+1 -1
View File
@@ -34,7 +34,6 @@ const lockCheckValidityInterval = 2 * time.Minute
// LockArgs besides lock name, holds Token and Timestamp for session
// authentication and validation server restart.
type LockArgs struct {
loginServer
Name string
Token string
Timestamp time.Time
@@ -70,6 +69,7 @@ func isWriteLock(lri []lockRequesterInfo) bool {
// lockServer is type for RPC handlers
type lockServer struct {
loginServer
rpcPath string
mutex sync.Mutex
lockMap map[string][]lockRequesterInfo