feat(gossipsub): Add support for custom connection handling (Mix protocol integration) (#1420)

Co-authored-by: Ben-PH <benphawke@gmail.com>
This commit is contained in:
AkshayaMani
2025-06-09 13:36:06 -04:00
committed by GitHub
parent f9fc24cc08
commit c501adc9ab
7 changed files with 245 additions and 52 deletions

View File

@@ -192,7 +192,7 @@ method init*(f: FloodSub) =
f.codec = FloodSubCodec
method publish*(
f: FloodSub, topic: string, data: seq[byte]
f: FloodSub, topic: string, data: seq[byte], useCustomConn: bool = false
): Future[int] {.async: (raises: []).} =
# base returns always 0
discard await procCall PubSub(f).publish(topic, data)