Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 21, 2024
1 parent 70ae530 commit 9ec32dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chain/cosmos/chain_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (tn *ChainNode) NewClient(addr string) error {

tn.Client = rpcClient

grpcConn, err := grpc.Dial(
grpcConn, err := grpc.NewClient(
tn.hostGRPCPort, grpc.WithTransportCredentials(insecure.NewCredentials()),
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion chain/penumbra/penumbra_client_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ func (p *PenumbraClientNode) StartContainer(ctx context.Context) error {

p.hostGRPCPort = hostPorts[0]

p.GRPCConn, err = grpc.Dial(p.hostGRPCPort, grpc.WithTransportCredentials(insecure.NewCredentials()))
p.GRPCConn, err = grpc.NewClient(p.hostGRPCPort, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion chain/thorchain/thornode.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (tn *ChainNode) NewClient(addr string) error {

tn.Client = rpcClient

grpcConn, err := grpc.Dial(
grpcConn, err := grpc.NewClient(
tn.hostGRPCPort, grpc.WithTransportCredentials(insecure.NewCredentials()),
)
if err != nil {
Expand Down
5 changes: 4 additions & 1 deletion local-interchain/interchain/handlers/chain_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ func NewChainRegistry(loc string) *chainRegistry {
func (cr chainRegistry) GetChainRegistry(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(cr.DataJSON)
if _, err := w.Write(cr.DataJSON); err != nil {
http.Error(w, "failed to write response", http.StatusInternalServerError)
}

}

0 comments on commit 9ec32dd

Please sign in to comment.