Style: lints for tools (#15637)

Co-authored-by: Marko <marko@baricevic.me>
This commit is contained in:
Jacob Gadikian 2023-03-31 15:15:27 +07:00 committed by GitHub
parent 8c182e7d77
commit 528ce31eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -16,14 +16,14 @@ import (
// initClientContext initiates client Context for tests
func initClientContext(t *testing.T) (client.Context, func()) {
home := t.TempDir()
chainId := "test-chain" //nolint:revive
chainID := "test-chain"
clientCtx := client.Context{}.
WithHomeDir(home).
WithViper("").
WithChainID(chainId)
WithChainID(chainID)
clientCtx, err := config.ReadFromClientConfig(clientCtx)
assert.NilError(t, err)
assert.Equal(t, clientCtx.ChainID, chainId)
assert.Equal(t, clientCtx.ChainID, chainID)
return clientCtx, func() { _ = os.RemoveAll(home) }
}

View File

@ -45,7 +45,7 @@ type Server struct {
func (h Server) Start() error {
h.logger.Info(fmt.Sprintf("Rosetta server listening on add %s", h.addr))
return http.ListenAndServe(h.addr, h.h) //nolint:gosec
return http.ListenAndServe(h.addr, h.h) //nolint:gosec // users are recommended to operate a proxy in front of this server
}
func NewServer(settings Settings) (Server, error) {