Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 19, 2025
1 parent 08b78c6 commit 8bc9016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions yarn-project/p2p/src/services/reqresp/reqresp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('ReqResp', () => {
let peerManager: MockProxy<PeerManager>;
let peerScoring: MockProxy<PeerScoring>;
let nodes: ReqRespNode[];
let logger = createLogger('test:reqresp.test.ts');
const logger = createLogger('test:reqresp.test.ts');

beforeEach(() => {
peerScoring = mock<PeerScoring>();
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('ReqResp', () => {
expect(res).toBeUndefined();
});

it.only('should request from a later peer if other peers are offline', async () => {
it('should request from a later peer if other peers are offline', async () => {
nodes = await createNodes(peerScoring, 4);

await startNodes(nodes);
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/reqresp/reqresp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class ReqResp {
return undefined;
}

let attemptedPeers: Map<PeerId, boolean> = new Map();
const attemptedPeers: Map<PeerId, boolean> = new Map();
for (let i = 0; i < numberOfPeers; i++) {
// Sample a peer to make a request to
const peer = this.connectionSampler.getPeer(attemptedPeers);
Expand Down

0 comments on commit 8bc9016

Please sign in to comment.