Browse Source

storage-node: fix content encoding in sync

Mokhtar Naamani 3 years ago
parent
commit
2f62f7f1c4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      storage-node/packages/colossus/lib/sync.js

+ 1 - 2
storage-node/packages/colossus/lib/sync.js

@@ -49,8 +49,7 @@ async function syncRun({ api, storage, contentBeingSynced, contentCompletedSync,
 
     try {
       contentBeingSynced.set(id)
-      const contentId = ContentId.decode(api.api.registry, id)
-      await storage.pin(contentId, (err, status) => {
+      await storage.pin(id, (err, status) => {
         if (err) {
           contentBeingSynced.delete(id)
           debug(`Error Syncing ${err}`)