aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-23 14:57:34 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-23 14:57:34 -0400
commit6fe8b91fb91882f456ebba16ee9a27f804c24e26 (patch)
treefbe757caf603c32055d3b69144ac38b286e15a35 /pkg
parentc7a0f3c401a7d270f457641c78bc4f59bb53aa0f (diff)
small refactoring
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipstack/ipstack.go2
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()