forked from External/ergo
use custime.Duration for more config fields
This commit is contained in:
parent
7b3caed20f
commit
ef161c47ed
6 changed files with 38 additions and 27 deletions
|
|
@ -381,7 +381,7 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
|
|||
callbackSpec := fmt.Sprintf("%s:%s", callbackNamespace, callbackValue)
|
||||
|
||||
var setOptions *buntdb.SetOptions
|
||||
ttl := config.Registration.VerifyTimeout
|
||||
ttl := time.Duration(config.Registration.VerifyTimeout)
|
||||
if ttl != 0 {
|
||||
setOptions = &buntdb.SetOptions{Expires: true, TTL: ttl}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue