Skip to content

Commit

Permalink
test: add more loging
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 19, 2024
1 parent d7e6d4e commit dea0dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DigNetwork/ContentServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ContentServer {
key: string
): Promise<{ success: boolean; headers?: http.IncomingHttpHeaders }> {
const url = `https://${this.ipAddress}/${this.storeId}/${key}`;
return this.head(url); // Return the object from head method
return this.head(url);
}

// Method to check if a specific store exists (HEAD request)
Expand All @@ -93,7 +93,7 @@ export class ContentServer {
url += `?hasRootHash=${options.hasRootHash}`;
}

return this.head(url); // Return the object from head method
return this.head(url);
}

public streamKey(key: string): Promise<Readable> {
Expand Down
2 changes: 1 addition & 1 deletion src/DigNetwork/DigNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class DigNetwork {
hasRootHash: rootHash,
});

console.log(peerIp, storeResponse.headers);
console.log(peerIp, storeResponse, storeResponse.headers);

if (
storeResponse.success &&
Expand Down

0 comments on commit dea0dfe

Please sign in to comment.