Merge pull request #133 from Permissionless-Software-Foundation/v0.46.21

fix(pubsub): Removing chat handler causing screen spam
This commit is contained in:
Chris Troutner
2024-01-27 17:48:29 -08:00
committed by GitHub
3 changed files with 12 additions and 9 deletions
+7 -7
View File
@@ -20,7 +20,7 @@
"datastore-fs": "9.1.6",
"glob": "7.1.6",
"helia": "2.1.0",
"helia-coord": "1.4.1",
"helia-coord": "1.4.2",
"jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1",
"jwt-bch-lib": "1.3.0",
@@ -7830,9 +7830,9 @@
}
},
"node_modules/helia-coord": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.1.tgz",
"integrity": "sha512-bSbjldYaQPvzYFFF37FjBteRQPaO3Iz0Tj0m93VkBpUQDRAcbY+dfCcvY9E5VdT2qb8oaVstYAVf26tvKkeiKQ==",
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.2.tgz",
"integrity": "sha512-WYTCR8IPCYgXe/HYEuoC1pqCb/aff9MQu71FcfV9Z2Zg7MqQ7SyrrRJbozXliaS//DFZgco08KEnTwohWj0tJA==",
"dependencies": {
"@chris.troutner/retry-queue": "1.0.8",
"bch-encrypt-lib": "2.1.1",
@@ -25225,9 +25225,9 @@
}
},
"helia-coord": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.1.tgz",
"integrity": "sha512-bSbjldYaQPvzYFFF37FjBteRQPaO3Iz0Tj0m93VkBpUQDRAcbY+dfCcvY9E5VdT2qb8oaVstYAVf26tvKkeiKQ==",
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.2.tgz",
"integrity": "sha512-WYTCR8IPCYgXe/HYEuoC1pqCb/aff9MQu71FcfV9Z2Zg7MqQ7SyrrRJbozXliaS//DFZgco08KEnTwohWj0tJA==",
"requires": {
"@chris.troutner/retry-queue": "1.0.8",
"bch-encrypt-lib": "2.1.1",
+1 -1
View File
@@ -35,7 +35,7 @@
"datastore-fs": "9.1.6",
"glob": "7.1.6",
"helia": "2.1.0",
"helia-coord": "1.4.1",
"helia-coord": "1.4.2",
"jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1",
"jwt-bch-lib": "1.3.0",
+4 -1
View File
@@ -113,9 +113,12 @@ class IpfsCoordAdapter {
// Subscribe to the chat pubsub channel
async subscribeToChat () {
// TODO: Allow user to replace nullog with their own log handler at startup.
const nullLog = () => {}
await this.ipfsCoord.adapters.pubsub.subscribeToPubsubChannel(
this.config.chatPubSubChan,
console.log,
nullLog,
this.ipfsCoord.thisNode
)
}