diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-23 14:57:34 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-23 14:57:34 -0400 |
commit | 6fe8b91fb91882f456ebba16ee9a27f804c24e26 (patch) | |
tree | fbe757caf603c32055d3b69144ac38b286e15a35 /pkg/ipstack/ipstack.go | |
parent | c7a0f3c401a7d270f457641c78bc4f59bb53aa0f (diff) |
small refactoring
Diffstat (limited to 'pkg/ipstack/ipstack.go')
-rw-r--r-- | pkg/ipstack/ipstack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 61b33b0..2ab2a5f 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -887,7 +887,7 @@ func handleRIP(src *Interface, dest *Neighbor, message []byte, hdr *ipv4header.I if entry.cost == INFINITY { // remove after GC time if the COST is still INFINITY go func() { - time.Sleep(12 * time.Second) + time.Sleep(time.Second * time.Duration(MAX_TIMEOUT)) if routingTable[destination].Cost == INFINITY { delete(routingTable, destination) mu.Lock() |