Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
burn2delete committed Jun 19, 2024
1 parent c439b0b commit cdcc3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions polling/polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"log/slog"
"net/http"
"strings"
Expand Down Expand Up @@ -148,7 +147,7 @@ func fetchSupergraphSdl(config *Config.Config, httpClient *http.Client, graphRef
// Send req using http Client
resp, err := httpClient.Do(req)
if err != nil {
log.Printf("Error on response.\n[ERROR] - %v", err)
logger.Error("Error on response.\n[ERROR] - %v", err)
return nil, err
}

Expand Down
3 changes: 1 addition & 2 deletions redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package redis

import (
"fmt"
"log"
"time"

"github.com/go-redis/redis"
Expand All @@ -21,7 +20,7 @@ func (c *RedisCache) Get(key string) ([]byte, bool) {
if err == redis.Nil {
return nil, false
} else if err != nil {
log.Printf("Failed to get key %s: %v", key, err)
return nil, false
}
return []byte(val), true
}
Expand Down

0 comments on commit cdcc3b9

Please sign in to comment.