Skip to content
New issue

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

Add more robust .golangci.yml #235

Merged
merged 14 commits into from
Feb 8, 2024
Merged

Add more robust .golangci.yml #235

merged 14 commits into from
Feb 8, 2024

Conversation

dhrubabasu
Copy link
Contributor

Ports the latest .golangci.yml from avalanchego and applies fixes

@dhrubabasu dhrubabasu self-assigned this Feb 8, 2024
server := &http.Server{
Addr: cfg.ListenAddr,
Handler: router,
ReadHeaderTimeout: 30 * time.Second,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the default setting here or define a const?

mapper/account.go Outdated Show resolved Hide resolved
@@ -28,6 +29,9 @@ import (
var (
cmdName = "avalanche-rosetta"
cmdVersion = service.MiddlewareVersion

defaultReadTimeout = 10 * time.Second
defaultWriteTimeout = 10 * time.Second
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to extend this as a debug trace could take 120+ seconds

@dhrubabasu dhrubabasu merged commit 267a4d7 into master Feb 8, 2024
4 checks passed
@dhrubabasu dhrubabasu deleted the golangci branch February 9, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants