diff options
author | 2024-08-07 19:06:32 -0700 | |
---|---|---|
committer | 2024-08-07 19:30:26 -0700 | |
commit | 55231eb4cfb5b5ce246a68ef456619cdb65d8af1 (patch) | |
tree | b08bff32c47432cab7da19040582c9b3d02d1020 /backend/internal/worker | |
parent | 08993e2f8497341079010d3d06361c99492c4c07 (diff) | |
download | ibd-trader-55231eb4cfb5b5ce246a68ef456619cdb65d8af1.tar.gz ibd-trader-55231eb4cfb5b5ce246a68ef456619cdb65d8af1.tar.zst ibd-trader-55231eb4cfb5b5ce246a68ef456619cdb65d8af1.zip |
Remove dead code in internal/database
Removes `keys.go` as the queries there were only being used in one
location.
Diffstat (limited to 'backend/internal/worker')
-rw-r--r-- | backend/internal/worker/auth/auth.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/internal/worker/auth/auth.go b/backend/internal/worker/auth/auth.go index 579a180..2043b5e 100644 --- a/backend/internal/worker/auth/auth.go +++ b/backend/internal/worker/auth/auth.go @@ -26,7 +26,7 @@ func RunAuthScraper( ctx context.Context, client *ibd.Client, redis *redis.Client, - db database.Executor, + db database.TransactionExecutor, kms keys.KeyManagementService, name string, ) error { @@ -55,7 +55,7 @@ func waitForTask( ctx context.Context, queue taskqueue.TaskQueue[auth.TaskInfo], client *ibd.Client, - db database.Executor, + db database.TransactionExecutor, kms keys.KeyManagementService, ) { task, err := queue.Dequeue(ctx, lockTimeout, dequeueTimeout) @@ -119,7 +119,7 @@ func waitForTask( func scrapeCookies( ctx context.Context, client *ibd.Client, - db database.Executor, + db database.TransactionExecutor, kms keys.KeyManagementService, user string, ) error { @@ -213,7 +213,7 @@ func healthCheckDegradedCookies( func scrapeNewCookies( ctx context.Context, client *ibd.Client, - db database.Executor, + db database.TransactionExecutor, kms keys.KeyManagementService, user string, ) error { |