*Update dist
This commit is contained in:
parent
7028609da4
commit
ee3e71351c
|
@ -76,7 +76,7 @@ export class SwarmClient extends Client {
|
||||||
}
|
}
|
||||||
async join(topic) {
|
async join(topic) {
|
||||||
if (typeof topic === "string") {
|
if (typeof topic === "string") {
|
||||||
topic = blake2b(topic);
|
topic = blake2b(topic, { dkLen: 32 });
|
||||||
}
|
}
|
||||||
this._topics.add(topic);
|
this._topics.add(topic);
|
||||||
this.callModule("join", { id: this.id, topic });
|
this.callModule("join", { id: this.id, topic });
|
||||||
|
|
Loading…
Reference in New Issue