threads working

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-16 15:07:26 -07:00
parent 2676dea140
commit b6421bb5e4
10 changed files with 214 additions and 32 deletions

View File

@@ -14,13 +14,17 @@ struct RelayInfo {
static let rw = RelayInfo(read: true, write: true)
}
struct Relay: Identifiable {
struct RelayDescriptor {
let url: URL
let info: RelayInfo
}
struct Relay: Identifiable {
let descriptor: RelayDescriptor
let connection: RelayConnection
var id: String {
return get_relay_id(url)
return get_relay_id(descriptor.url)
}
}