From 30fc93f11537789824eeb24bde212a57e43ecb01 Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Sun, 18 Jun 2017 15:53:42 +1000 Subject: Add user configuration and more exported variables --- ktable.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ktable.go') diff --git a/ktable.go b/ktable.go index 17dae2b..b75ddf5 100644 --- a/ktable.go +++ b/ktable.go @@ -4,8 +4,6 @@ import ( "sync" ) -const kTableLimit = 1000 - // Keep it simple for now type kTable struct { sync.Mutex @@ -40,7 +38,7 @@ func (k *kTable) isEmpty() bool { func (k *kTable) isFull() bool { k.Lock() defer k.Unlock() - return len(k.nodes) >= kTableLimit + return len(k.nodes) >= Config.Advanced.RoutingTableSize } // For now -- cgit v1.2.3