Adds O(1) method for peer nickname retrieval (#450)

* Adds O(1) method for peerNickname retrieval

* Uses peerNickname method where possible
This commit is contained in:
Mateusz Matoszko
2025-08-17 21:29:15 +02:00
committed by GitHub
parent 4f1ac30f12
commit 7836daa6d3
10 changed files with 31 additions and 18 deletions
+1
View File
@@ -29,6 +29,7 @@ protocol Transport: AnyObject {
// Connectivity and peers
func isPeerConnected(_ peerID: String) -> Bool
func peerNickname(peerID: String) -> String?
func getPeerNicknames() -> [String: String]
// Protocol utilities