Organize RelayPool namespace
This is a non-functional refactor that organizes some classes and structs used by RelayPool under the same namespace. Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -309,7 +309,7 @@ public func nscript_nostr_cmd(interp: UnsafeMutablePointer<wasm_interp>?, cmd: I
|
||||
|
||||
func nscript_add_relay(script: NostrScript, relay: String) -> Bool {
|
||||
guard let url = RelayURL(relay) else { return false }
|
||||
let desc = RelayDescriptor(url: url, info: .rw, variant: .ephemeral)
|
||||
let desc = RelayPool.RelayDescriptor(url: url, info: .rw, variant: .ephemeral)
|
||||
return (try? script.pool.add_relay(desc)) != nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user