From 8da999f21d200139c1262c6d788739c61a5e8732 Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Tue, 5 Jul 2022 20:22:34 -0400 Subject: [PATCH] changed client message cache to a day --- netclient/functions/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netclient/functions/daemon.go b/netclient/functions/daemon.go index 1aa50a36..21b39b57 100644 --- a/netclient/functions/daemon.go +++ b/netclient/functions/daemon.go @@ -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 "" }