1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

remove -1

This commit is contained in:
Jeff Becker 2019-07-30 13:56:24 -04:00
parent d595b51b0b
commit f4ac918b7e
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -666,7 +666,7 @@ namespace llarp
// requester is likely in the connected list
// 4 or connection nodes (minus a potential requestor), whatever is less
if(!_nodes->GetManyNearExcluding(t, foundRouters,
nodeCount >= 4 ? 4 : nodeCount - 1,
nodeCount >= 4 ? 4 : nodeCount,
std::set< Key_t >{ourKey, requester}))
{
llarp::LogError(