mirror of https://github.com/waku-org/js-waku.git
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> {
|
public async send(message: WakuMessage): Promise<void> {
|
||||||
const msg = message.encode();
|
const msg = message.encode();
|
||||||
await super.publish(this.pubsubTopic, Buffer.from(msg));
|
await super.publish(this.pubsubTopic, new Buffer(msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue