mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-24 10:58:18 +00:00
chore: fix encoder/decoder creation (#1742)
* fix encoder creation * bump nwaku to v0.22.0 (#1741)
This commit is contained in:
parent
4d19fc7b75
commit
7ce642c2cc
@ -128,7 +128,7 @@ export function createEncoder({
|
|||||||
return new Encoder(
|
return new Encoder(
|
||||||
contentTopic,
|
contentTopic,
|
||||||
ephemeral,
|
ephemeral,
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
metaSetter
|
metaSetter
|
||||||
@ -193,7 +193,7 @@ export function createDecoder(
|
|||||||
pubsubTopicShardInfo?: SingleShardInfo
|
pubsubTopicShardInfo?: SingleShardInfo
|
||||||
): Decoder {
|
): Decoder {
|
||||||
return new Decoder(
|
return new Decoder(
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
contentTopic
|
contentTopic
|
||||||
|
@ -107,7 +107,7 @@ export function createEncoder({
|
|||||||
metaSetter
|
metaSetter
|
||||||
}: EncoderOptions): Encoder {
|
}: EncoderOptions): Encoder {
|
||||||
return new Encoder(
|
return new Encoder(
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
contentTopic,
|
contentTopic,
|
||||||
@ -200,7 +200,7 @@ export function createDecoder(
|
|||||||
pubsubTopicShardInfo?: SingleShardInfo
|
pubsubTopicShardInfo?: SingleShardInfo
|
||||||
): Decoder {
|
): Decoder {
|
||||||
return new Decoder(
|
return new Decoder(
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
contentTopic,
|
contentTopic,
|
||||||
|
@ -107,7 +107,7 @@ export function createEncoder({
|
|||||||
metaSetter
|
metaSetter
|
||||||
}: EncoderOptions): Encoder {
|
}: EncoderOptions): Encoder {
|
||||||
return new Encoder(
|
return new Encoder(
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
contentTopic,
|
contentTopic,
|
||||||
@ -200,7 +200,7 @@ export function createDecoder(
|
|||||||
pubsubTopicShardInfo?: SingleShardInfo
|
pubsubTopicShardInfo?: SingleShardInfo
|
||||||
): Decoder {
|
): Decoder {
|
||||||
return new Decoder(
|
return new Decoder(
|
||||||
pubsubTopicShardInfo?.index
|
pubsubTopicShardInfo
|
||||||
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
? singleShardInfoToPubsubTopic(pubsubTopicShardInfo)
|
||||||
: DefaultPubsubTopic,
|
: DefaultPubsubTopic,
|
||||||
contentTopic,
|
contentTopic,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user