Skip to content

Commit

Permalink
Deprecated IOUTIL removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayman committed Aug 2, 2024
1 parent 1b76c17 commit a182d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion call-profile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
func handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
ctx := context.Background()
client, err := utils.InitializeFirestoreClient(ctx)
fmt.Println(client, err)
if err != nil {
return events.APIGatewayProxyResponse{}, err
}
Expand Down
4 changes: 2 additions & 2 deletions layer/utils/firestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -146,7 +146,7 @@ func Getdata(client *firestore.Client, ctx context.Context, userId string, userU

defer resp.Body.Close()

r, err := ioutil.ReadAll(resp.Body)
r, err := io.ReadAll(resp.Body)
if err != nil {
LogProfileSkipped(client, ctx, userId, fmt.Sprintln(err), sessionId)
SetProfileStatusBlocked(client, ctx, userId, fmt.Sprintln(err), sessionId, discordId)
Expand Down

0 comments on commit a182d58

Please sign in to comment.