Skip to content

Commit

Permalink
update default registration tracking timeout from 2 mins to 6 hrs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample authored May 17, 2021
1 parent 304a87f commit 2e2b7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/lib/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (r *RegisteredDecoys) getExpiredRegistrations() []string {
r.m.RLock()
defer r.m.RUnlock()

const regTimeout = time.Minute * 2
const regTimeout = time.Hour * 6
var cutoff = time.Now().Add(-regTimeout)
var expiredRegTimeoutIndices = []string{}

Expand Down Expand Up @@ -712,7 +712,7 @@ func registerForDetector(reg *DecoyRegistration) {
return
}

duration := uint64(3 * time.Minute.Nanoseconds())
duration := uint64(6 * time.Hour.Nanoseconds())
src := reg.registrationAddr.String()
phantom := reg.DarkDecoy.String()
msg := &pb.StationToDetector{
Expand Down

0 comments on commit 2e2b7de

Please sign in to comment.