use default client

This commit is contained in:
filifa 2025-04-06 22:13:37 -04:00
parent 9a032e177d
commit b3cbb2789b
1 changed files with 2 additions and 3 deletions

View File

@ -157,8 +157,7 @@ func subscribe(cmd *cobra.Command, args []string) {
} }
defer ws.Close() defer ws.Close()
client := api.NewAPIClient(api.NewConfiguration()) req := statsAPIClient.GameAPI.LiveGameV1(context.Background(), gamePk)
req := client.GameAPI.LiveGameV1(context.Background(), gamePk)
resp, err := req.Execute() resp, err := req.Execute()
if err != nil { if err != nil {
@ -173,7 +172,7 @@ func subscribe(cmd *cobra.Command, args []string) {
fmt.Println(string(body)) fmt.Println(string(body))
err = updateFeed(body, ws, client) err = updateFeed(body, ws, statsAPIClient)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }