diff options
| author | Felix Hanley <felix@userspace.com.au> | 2017-06-18 05:53:42 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2017-06-18 05:53:42 +0000 |
| commit | 30fc93f11537789824eeb24bde212a57e43ecb01 (patch) | |
| tree | e83e685519c704adb97e34ea1bdef9ab6b8d484f /ktable.go | |
| parent | 3e3fa4064fcaf43cd87ddbfc457097bacb697fc5 (diff) | |
| download | dhtsearch-30fc93f11537789824eeb24bde212a57e43ecb01.tar.gz dhtsearch-30fc93f11537789824eeb24bde212a57e43ecb01.tar.bz2 | |
Add user configuration and more exported variables
Diffstat (limited to 'ktable.go')
| -rw-r--r-- | ktable.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |
