Skip to content

Commit 732db13

Browse files
committed
increase limit for calculating treshold
1 parent 0a7b79c commit 732db13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/pkg/services/heartbeat_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818
)
1919

2020
const (
21-
heartbeatCheckInterval = 16 * time.Minute
21+
// select id, a.timestamp, a.owner, a.timestamp - (SELECT timestamp from heartbeats b where b.timestamp < a.timestamp and a.owner = b.owner and a.user_id = b.user_id order by b.timestamp desc limit 1) as diff from heartbeats a;
22+
heartbeatCheckInterval = 25 * time.Minute
2223
)
2324

2425
// HeartbeatService is handles heartbeat requests

0 commit comments

Comments
 (0)