From c2d2cebe3e4cbeb94b9bcb0e186c0c53b9fd7970 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Sat, 14 Mar 2026 19:47:47 +0200 Subject: [PATCH] temporary remove ctx from connector func --- client/client.go | 2 +- pkg/connector/connector.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/client.go b/client/client.go index f060d46..71d28fc 100644 --- a/client/client.go +++ b/client/client.go @@ -107,7 +107,7 @@ func NewClient(ctx context.Context, s storage.UIStorage, conn connector.UIConnec } func (e *client) loadReport(ctx context.Context, t uint) { - e.conn.FetchReport(ctx, "GAME_ID", t, func(r report.Report, err error) { + e.conn.FetchReport("GAME_ID", t, func(r report.Report, err error) { if err != nil { e.handlerError(err) } else { diff --git a/pkg/connector/connector.go b/pkg/connector/connector.go index 9893a3c..9f170ab 100644 --- a/pkg/connector/connector.go +++ b/pkg/connector/connector.go @@ -1,7 +1,6 @@ package connector import ( - "context" "galaxy/model/client" "galaxy/model/report" ) @@ -26,7 +25,7 @@ type UIConnector interface { // FetchReport asynchronously requests from backend server a [report.Report] for a given [model.GameID] and turn number. // Passed callback func will will accept non-nil error in case of I/O or decoding errors occuried, // otherwise callback func accepts loaded [report.Report]. - FetchReport(context.Context, client.GameID, uint, func(report.Report, error)) + FetchReport(client.GameID, uint, func(report.Report, error)) } type VersionInfo struct {