We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This function receives way too many parameters. It probably makes sense to extract these to a struct that acts as a config and pass that instead
go-waku/cmd/waku/server/rest/waku_rest.go
Line 24 in 02f2800
I'd suggest something like this:
type RestConfig struct { Address string Port uint PProf bool RelayCacheCapacity uint } func NewWakuRest(node *node.WakuNode, config *RestConfig, log *zap.Logger) { ... }
The text was updated successfully, but these errors were encountered:
chaitanyaprem
No branches or pull requests
This function receives way too many parameters. It probably makes sense to extract these to a struct that acts as a config and pass that instead
go-waku/cmd/waku/server/rest/waku_rest.go
Line 24 in 02f2800
I'd suggest something like this:
The text was updated successfully, but these errors were encountered: