Skip to content

Commit 968f208

Browse files
authored
Update token.go
Fix types
1 parent 75ea085 commit 968f208

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

token.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
// expirations due to client-server time mismatches.
2222
var expiryDelta = 10 * time.Second
2323

24-
// make expiryDelta configurable if 10 seconds is insufficient
25-
func SetExpiryDelta(seconds){
26-
expiryDelta = seconds * time.Second
24+
// make expiryDelta configurable
25+
func SetExpiryDelta(seconds int){
26+
expiryDelta = time.Duration(seconds) * time.Second
2727
}
2828

2929
// Token represents the credentials used to authorize

0 commit comments

Comments
 (0)