Style: lints for tools (#15637)
Co-authored-by: Marko <marko@baricevic.me>
This commit is contained in:
parent
8c182e7d77
commit
528ce31eeb
@ -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) }
|
||||
}
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user