Skip to content

Commit

Permalink
fix: lint & vet
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Jul 11, 2024
1 parent 00ad3b5 commit f80c4bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions node/pkg/dal/api/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ var ApiController Controller

func Setup(ctx context.Context, adminEndpoint string) error {
configs, err := request.Request[[]types.Config](request.WithEndpoint(adminEndpoint + "/config"))
if err != nil {
log.Error().Err(err).Msg("failed to get configs")
return err
}

configMap := make(map[string]types.Config)
for _, config := range configs {
Expand Down
4 changes: 3 additions & 1 deletion node/pkg/dal/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func Run(ctx context.Context) error {
log.Error().Err(err).Msg("Failed to setup DAL API server")
return err
}
defer app.Shutdown()
defer func() {
_ = app.Shutdown()
}()

adminEndpoint := os.Getenv("ORAKL_NODE_ADMIN_URL")
if adminEndpoint == "" {
Expand Down
1 change: 0 additions & 1 deletion node/pkg/dal/tests/main_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//nolint:all

package test

import (
Expand Down

0 comments on commit f80c4bd

Please sign in to comment.