relay: make RelayInfo encoding more flexible

So that we don't fail relay list decoding as easy
This commit is contained in:
William Casarin
2023-05-10 13:24:46 -07:00
parent fe6d7e5118
commit 1fe54380b8
2 changed files with 7 additions and 7 deletions

View File

@@ -8,9 +8,9 @@
import Foundation
public struct RelayInfo: Codable {
let read: Bool
let write: Bool
let ephemeral: Bool
let read: Bool?
let write: Bool?
let ephemeral: Bool?
init(read: Bool, write: Bool, ephemeral: Bool = false) {
self.read = read