This commit is contained in:
Emery Hemingway 2021-10-29 18:26:33 +02:00
parent 166152cd84
commit 55fcbb0754
3 changed files with 3 additions and 13 deletions

View File

@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: ☭ 2021 Emery Hemingway
# SPDX-License-Identifier: Unlicense
import std/[asyncdispatch, hashes, macros, options, tables]
import std/[hashes, macros, tables]
import preserves
import ../syndicate/protocols/[dataspace, dataspacePatterns]
import ./actors, ./bags
@ -9,7 +9,6 @@ import ./actors, ./bags
from ../syndicate/protocols/protocol import Handle
type
Value = Preserve[Ref]
Pattern* = dataspacePatterns.Pattern[Ref]
Observe = dataspace.Observe[Ref]
Turn = actors.Turn

View File

@ -4,8 +4,7 @@
import std/[macros, tables]
import preserves
import ../syndicate/protocols/[dataspacePatterns, simpleChatProtocol]
import ../syndicate/protocols/dataspacePatterns
from ./actors import Ref
export dataspacePatterns.`$`

View File

@ -107,14 +107,6 @@ proc newSyncPeerEntity(r: Relay; p: Ref): SyncPeerEntity =
syncPeerMessage,
syncPeerSync)
#[
proc `$`(ws: WireSymbol): string =
"<ws:" & $ws.oid & "/" & $ws.count & "/" & $ws.`ref` &>"
]#
proc `$`(re: RelayEntity): string =
"<Relay:" & re.label & ":" & $re.oid & ">"
proc rewriteRefOut(relay: Relay; `ref`: Ref; transient: bool; exported: var seq[WireSymbol]): WireRef =
#[
if not relay.untrusted:
@ -336,7 +328,7 @@ proc spawnRelay(name: string; turn: var Turn; opts: RelayActorOptions): Future[R
else: oid
fut
import std/[asyncdispatch, asyncnet]
import std/asyncnet
from std/nativesockets import AF_UNIX, SOCK_STREAM, Protocol
import protocols/gatekeeper