Skip to content

Commit

Permalink
Update container/shim/src/fetchers/lassie.js
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Guan <[email protected]>
Signed-off-by: Amean Asad <[email protected]>
  • Loading branch information
AmeanAsad and guanzo authored Feb 12, 2024
1 parent c21462f commit 3ff3b48
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions container/shim/src/fetchers/lassie.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ async function getRequestedBlockFromCar(streamIn, streamOut, cidObj, filename) {
function generatePeersLassieUrl(knownPeers) {
const peerUrls = [];
if (knownPeers) {
const knownPeerList = [];
Object.values(knownPeers).forEach((peerList) => {
knownPeerList.push(...peerList);
});
const knownPeerList = Object.values(knownPeers).flat()

knownPeerList.forEach((peer, idx) => {
const { peerID, multiaddr, protocol } = peer;
Expand Down

0 comments on commit 3ff3b48

Please sign in to comment.