mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-26 20:30:07 +00:00
Constructor is more appropriate when comparing function signatures
This commit is contained in:
parent
c5419630fc
commit
354dcd66a5
@ -114,7 +114,7 @@ export class WakuRelay extends Gossipsub {
|
||||
*/
|
||||
public async send(message: WakuMessage): Promise<void> {
|
||||
const msg = message.encode();
|
||||
await super.publish(this.pubsubTopic, Buffer.from(msg));
|
||||
await super.publish(this.pubsubTopic, new Buffer(msg));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user