From 6fe8b91fb91882f456ebba16ee9a27f804c24e26 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 14:57:34 -0400 Subject: small refactoring --- pkg/ipstack/ipstack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ipstack/ipstack.go') 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() -- cgit v1.2.3-70-g09d2