ChainSafe / ChainSafe/gossamer

Add context for IO request in peer scoring logic.

Open
#1,924 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Issue summary

- We should pass separate context for every IO request instead of passing the context that is stored in the struct.
- https://github.com/ChainSafe/gossamer/pull/1791#discussion_r732754681

## Other information and links

-

Contributor guide

Open the contributing guide

Research direction

Start by locating the peer scoring logic and its IO request call sites, then read the linked discussion in PR #1791 for the intended context handling. Done means each IO request receives separate context rather than the context stored in the struct; update relevant tests if they exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.