build: fix a few warnings

This commit is contained in:
William Casarin
2023-12-03 22:12:00 -08:00
parent 9502fc30ba
commit 59cde41764
5 changed files with 5 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ class RelayPool {
case .string(let str) = msg
else { return }
self.ndb.process_event(str)
let _ = self.ndb.process_event(str)
})
let relay = Relay(descriptor: desc, connection: conn)
self.relays.append(relay)
@@ -220,10 +220,10 @@ class RelayPool {
switch req {
case .typical(let r):
if case .event = r, let rstr = make_nostr_req(r) {
ndb.process_client_event(rstr)
let _ = ndb.process_client_event(rstr)
}
case .custom(let string):
ndb.process_client_event(string)
let _ = ndb.process_client_event(string)
}
for relay in relays {

View File

@@ -15,8 +15,6 @@ public struct RelayURL: Hashable, Equatable, Codable, CodingKeyRepresentable {
}
init?(_ str: String) {
guard let last = str.last else { return nil }
guard let url = URL(string: str) else {
return nil
}