From 1b68c109eeff9d2a444bbdb4b8f1a58cd2ceabeb Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 12 May 2021 10:33:02 +1000 Subject: [PATCH] Fix build --- SessionSnodeKit/SnodeAPI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionSnodeKit/SnodeAPI.swift b/SessionSnodeKit/SnodeAPI.swift index f35e8ee1c..dabc398ac 100644 --- a/SessionSnodeKit/SnodeAPI.swift +++ b/SessionSnodeKit/SnodeAPI.swift @@ -218,7 +218,7 @@ public final class SnodeAPI : NSObject { if result.count > 24 { // We want the snodes to agree on at least this many snodes // Limit the snode pool size to 256 so that we don't go too long without // refreshing it - return (result.count > 256) ? result[..<256] : result + return (result.count > 256) ? Set([Snode](result)[0..<256]) : result } else { throw Error.inconsistentSnodePools }