celestiaorg / celestiaorg/go-header

p2p: Revamp the options pattern

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21
Forks
33
Avg merge
5d 20h
Merged PRs (30d)
7

Description

We do [this](https://github.com/celestiaorg/go-header/blob/c82c1b320391bb97895734eb793f0a27216908f5/p2p/options.go#L60-L63) to make a single option usable in different contexts, but it's ugly and error-prone. Think of a cleaner way to accomplish the same goal.

Contributor guide

Open the contributing guide

Research direction

Start by reading p2p/options.go at lines 60-63 and the surrounding options pattern. Identify the different contexts that require one option to be reused, then compare possible cleaner designs against that same requirement. Done means the existing behavior is preserved with a less error-prone options pattern.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.