mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix typo in serverVersion (#2894)
This commit is contained in:
parent
6e8f3224c5
commit
0d031c432b
@ -96,7 +96,7 @@ type AuthRPCClient struct {
|
|||||||
isLoggedIn bool // Indicates if the auth client has been logged in and token is valid.
|
isLoggedIn bool // Indicates if the auth client has been logged in and token is valid.
|
||||||
token string // JWT based token
|
token string // JWT based token
|
||||||
tstamp time.Time // Timestamp as received on Login RPC.
|
tstamp time.Time // Timestamp as received on Login RPC.
|
||||||
serverVerison string // Server version exchanged by the RPC.
|
serverVersion string // Server version exchanged by the RPC.
|
||||||
}
|
}
|
||||||
|
|
||||||
// newAuthClient - returns a jwt based authenticated (go) rpc client, which does automatic reconnect.
|
// newAuthClient - returns a jwt based authenticated (go) rpc client, which does automatic reconnect.
|
||||||
@ -142,7 +142,7 @@ func (authClient *AuthRPCClient) Login() error {
|
|||||||
// Set token, time stamp as received from a successful login call.
|
// Set token, time stamp as received from a successful login call.
|
||||||
authClient.token = reply.Token
|
authClient.token = reply.Token
|
||||||
authClient.tstamp = reply.Timestamp
|
authClient.tstamp = reply.Timestamp
|
||||||
authClient.serverVerison = reply.ServerVersion
|
authClient.serverVersion = reply.ServerVersion
|
||||||
authClient.isLoggedIn = true
|
authClient.isLoggedIn = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user