mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 07:34:31 +08:00
changed client message cache to a day
This commit is contained in:
parent
d3b84f7814
commit
8da999f21d
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ func read(network, which string) string {
|
|||
if readMessage.LastSeen.IsZero() {
|
||||
return ""
|
||||
}
|
||||
if time.Now().After(readMessage.LastSeen.Add(time.Minute * 10)) { // check if message has been there over a minute
|
||||
if time.Now().After(readMessage.LastSeen.Add(time.Hour * 24)) { // check if message has been there over a minute
|
||||
messageCache.Delete(fmt.Sprintf("%s%s", network, which)) // remove old message if expired
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue