Skip to content

Commit

Permalink
fixing import for fs
Browse files Browse the repository at this point in the history
  • Loading branch information
silkroadnomad committed Dec 21, 2024
1 parent a9640aa commit dd7dee2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion relay/src/pinner/nameOpsFileManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export async function getLastNameOps(orbitdb, pageSize, from=10, filter) {
try {
const db = await getOrCreateDB(orbitdb)
const allDocs = await db.all()

let nameOps = []
for (const doc of allDocs) {
const nameOp = doc.value.nameOp;
Expand Down
2 changes: 1 addition & 1 deletion relay/src/pubsubHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function setupPubsub(helia, orbitdb, pinningService, electrumClient, fsHe
}

if (messageObject && topic.startsWith(CONTENT_TOPIC)) {
console.log("Received message:", messageObject);
// console.log("Received message:", messageObject);
if (messageObject.type == "LIST") {
console.log("Received LIST request:", messageObject);
const { dateString, pageSize, from, filter } = messageObject;
Expand Down
1 change: 1 addition & 0 deletions relay/src/relay.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dotenv/config'
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'
import fs from 'fs/promises'
// External libraries
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
Expand Down

0 comments on commit dd7dee2

Please sign in to comment.