Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz committed Sep 26, 2023
1 parent c5c08e8 commit ce1b955
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func main() {
flag.Parse()
logger := logging.NewLogger().Named("metric-sever")
ctx := context.Background()
ctx = context.Background()
defer ctx.Done()

metricsServer := server.NewO11yServer(logger, port, enableTLS)
Expand Down
3 changes: 1 addition & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -225,7 +224,7 @@ func (ms *O11yServer) dashboardConfig(ctx *gin.Context) {
}

func (ms *O11yServer) readConfig() error {
yamlFile, err := ioutil.ReadFile("app/config.json")
yamlFile, err := os.ReadFile("app/config.json")
if err != nil {
fmt.Printf("yamlFile.Get err #%v ", err)
}
Expand Down

0 comments on commit ce1b955

Please sign in to comment.