From 2d8de55d436332af307f36c33dc23007c6c426f0 Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:08:35 -0700 Subject: [PATCH] remove client:name --- examples/nim_chat_poc.nim | 4 ++-- src/chat_sdk/client.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nim_chat_poc.nim b/examples/nim_chat_poc.nim index 2b7327d..9a3c480 100644 --- a/examples/nim_chat_poc.nim +++ b/examples/nim_chat_poc.nim @@ -62,7 +62,7 @@ proc main() {.async.} = cfg_raya.staticPeers.add(cfg_saro.getMultiAddr()) # Start Clients - var saro = newClient("Saro", cfg_saro, createIdentity("Saro")) + var saro = newClient(cfg_saro, createIdentity("Saro")) saro.onNewMessage(proc(convo: Conversation, msg: ContentFrame) {.async.} = echo " Saro <------ :: " & getContent(msg) await sleepAsync(10000) @@ -76,7 +76,7 @@ proc main() {.async.} = await saro.start() - var raya = newClient("Raya", cfg_raya, createIdentity("Raya")) + var raya = newClient(cfg_raya, createIdentity("Raya")) raya.onNewMessage(proc(convo: Conversation, msg: ContentFrame) {.async.} = echo " ------> Raya :: " & getContent(msg) await sleepAsync(10000) diff --git a/src/chat_sdk/client.nim b/src/chat_sdk/client.nim index 3567b9c..c3b9fff 100644 --- a/src/chat_sdk/client.nim +++ b/src/chat_sdk/client.nim @@ -63,7 +63,7 @@ type Client* = ref object # Constructors ################################################# -proc newClient*(name: string, cfg: WakuConfig, ident: Identity): Client {.raises: [IOError, +proc newClient*(cfg: WakuConfig, ident: Identity): Client {.raises: [IOError, ValueError, SerializationError].} = ## Creates new instance of a `Client` with a given `WakuConfig` try: