From 5cb3735a391fb3d9301a8bca2d2073ddb66c0306 Mon Sep 17 00:00:00 2001 From: Nya Candy Date: Fri, 16 Aug 2024 13:22:01 +0800 Subject: [PATCH] feat: apply pesticides byebye cockroaches --- .github/workflows/test.yaml | 18 ++++++------- atlas.hcl | 11 ++++---- deploy/config.yaml.example | 4 +-- deploy/docker-compose.dev.yml | 27 +++++-------------- deploy/docker-compose.migration.yml | 13 ++++----- internal/config/config.go | 4 +-- internal/database/dialer/dialer.go | 6 ++--- .../{cockroachdb => postgresql}/client.go | 4 +-- .../client_billing.go | 4 +-- .../client_checkpoint.go | 4 +-- .../client_gateway.go | 4 +-- .../client_node_request_rewards.go | 4 +-- ...0412045602_paymentprocessor_initialize.sql | 0 .../20240412060447_fix_billing_records.sql | 0 ...0240412091335_add_node_request_records.sql | 0 ...022850_alter_column_index_set_not_null.sql | 0 ...240606022851_use_composite_primary_key.sql | 0 ...25032621_log_epoch_in_consumption_logs.sql | 0 .../migration/README.md | 0 .../migration/atlas.sum | 0 .../table/billing_record_collected.go | 0 .../table/billing_record_deposited.go | 0 .../table/billing_record_withdrawal.go | 0 .../table/checkpoint.go | 0 .../table/gateway_account.go | 0 .../table/gateway_consumption_log.go | 0 .../table/gateway_key.go | 0 .../table/gateway_pending_withdraw_request.go | 0 .../table/node_request_record.go | 0 internal/database/driver.go | 5 ++-- internal/service/hub/gateway_test.go | 6 ++--- internal/service/hub/handlers/history.go | 2 +- internal/service/hub/handlers/withdraw.go | 2 +- internal/service/hub/model/account.go | 2 +- internal/service/hub/model/key.go | 2 +- internal/service/hub/processors/access_log.go | 2 +- 36 files changed, 51 insertions(+), 73 deletions(-) rename internal/database/dialer/{cockroachdb => postgresql}/client.go (98%) rename internal/database/dialer/{cockroachdb => postgresql}/client_billing.go (99%) rename internal/database/dialer/{cockroachdb => postgresql}/client_checkpoint.go (95%) rename internal/database/dialer/{cockroachdb => postgresql}/client_gateway.go (96%) rename internal/database/dialer/{cockroachdb => postgresql}/client_node_request_rewards.go (97%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240412045602_paymentprocessor_initialize.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240412060447_fix_billing_records.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240412091335_add_node_request_records.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240606022850_alter_column_index_set_not_null.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240606022851_use_composite_primary_key.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/20240625032621_log_epoch_in_consumption_logs.sql (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/README.md (100%) rename internal/database/dialer/{cockroachdb => postgresql}/migration/atlas.sum (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/billing_record_collected.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/billing_record_deposited.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/billing_record_withdrawal.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/checkpoint.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/gateway_account.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/gateway_consumption_log.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/gateway_key.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/gateway_pending_withdraw_request.go (100%) rename internal/database/dialer/{cockroachdb => postgresql}/table/node_request_record.go (100%) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f974499..fee11bc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -62,15 +62,13 @@ jobs: --mode dev-container \ --default-log-level=debug - - name: Start CRDB container + - name: Start PSQL container run: | - docker run -d --name crdb \ - --network ${{ job.container.network }} --network-alias crdb \ - -p 8080:8080 -p 26257:26257 \ - cockroachdb/cockroach:v23.1.8 \ - start-single-node \ - --cluster-name=node \ - --insecure + docker run -d --name psql \ + --network ${{ job.container.network }} --network-alias psql \ + -p 5432:5432 \ + -e POSTGRES_PASSWORD=dev \ + postgres:16-alpine - name: Setup Go uses: actions/setup-go@v3 @@ -82,5 +80,5 @@ jobs: - name: Stop containers run: | - docker stop redpanda-0 crdb - docker rm redpanda-0 crdb + docker stop redpanda-0 psql + docker rm redpanda-0 psql diff --git a/atlas.hcl b/atlas.hcl index f47f7de..d040108 100644 --- a/atlas.hcl +++ b/atlas.hcl @@ -1,4 +1,4 @@ -// read internal/database/dialer/cockroachdb/README.md for more information +// read internal/database/dialer/postgresql/README.md for more information data "external_schema" "gorm" { program = [ @@ -7,7 +7,7 @@ data "external_schema" "gorm" { "-mod=mod", "ariga.io/atlas-provider-gorm", "load", - "--path", "./internal/database/dialer/cockroachdb/table", + "--path", "./internal/database/dialer/postgresql/table", "--dialect", "postgres" ] } @@ -17,14 +17,13 @@ env "dev" { // pointing to gorm models to generate schemas src = data.external_schema.gorm.url // the database which is holding the actual tables - url = "postgres://root:@localhost:26257/defaultdb?sslmode=disable&search_path=public" -# url = "postgres://postgres:password@localhost:5432/postgres?sslmode=disable" + url = "postgres://postgres:dev@localhost:5432/postgres?sslmode=disable" // a temporary database for Atlas to do migrations - dev = "postgres://root:@localhost:26258/defaultdb?sslmode=disable&search_path=public" + dev = "postgres://postgres:mig@localhost:5433/postgres?sslmode=disable" # dev = "docker://postgres/16" // location of migration files migration { - dir = "file://internal/database/dialer/cockroachdb/migration?format=goose" + dir = "file://internal/database/dialer/postgresql/migration?format=goose" } format { migrate { diff --git a/deploy/config.yaml.example b/deploy/config.yaml.example index d07cd64..812d612 100644 --- a/deploy/config.yaml.example +++ b/deploy/config.yaml.example @@ -1,9 +1,9 @@ environment: development database: - driver: cockroachdb + driver: postgresql partition: true - uri: postgres://root@localhost:26257/defaultdb + uri: postgres://postgres:password@localhost:5432/postgres redis: uri: redis://localhost:6379/0 diff --git a/deploy/docker-compose.dev.yml b/deploy/docker-compose.dev.yml index dd63916..03cea16 100644 --- a/deploy/docker-compose.dev.yml +++ b/deploy/docker-compose.dev.yml @@ -1,28 +1,13 @@ version: "3.9" name: pp_dev services: - # CRDB - cockroach: - image: cockroachdb/cockroach:v23.1.8 + # Database + postgres: + image: postgres:16-alpine ports: - - "26257:26257" - command: - - start-single-node - - --cluster-name=rss3-gateway - - --insecure - labels: - - "traefik.http.routers.crdb-console.rule=Host(`crdb-console.docker.localhost`)" - - "traefik.http.services.crdb-console.loadbalancer.server.port=8080" - -# # CRDB for Atlas' temporary migration use -# cockroach2: -# image: cockroachdb/cockroach:v23.1.8 -# ports: -# - "26258:26257" -# command: -# - start-single-node -# - --cluster-name=rss3-gateway -# - --insecure + - "5432:5432" + environment: + POSTGRES_PASSWORD: dev # Redis redis: diff --git a/deploy/docker-compose.migration.yml b/deploy/docker-compose.migration.yml index 3baad14..63252da 100644 --- a/deploy/docker-compose.migration.yml +++ b/deploy/docker-compose.migration.yml @@ -1,12 +1,9 @@ version: "3.9" name: pp_mig services: - # CRDB for Atlas' temporary migration use - cockroach2: - image: cockroachdb/cockroach:v23.1.8 + postgres-mig: + image: postgres:16-alpine ports: - - "26258:26257" - command: - - start-single-node - - --cluster-name=rss3-gateway - - --insecure + - "5433:5432" + environment: + POSTGRES_PASSWORD: mig diff --git a/internal/config/config.go b/internal/config/config.go index df9d2ad..527ee5b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -26,8 +26,8 @@ type File struct { } type Database struct { - Driver database.Driver `mapstructure:"driver" validate:"required" default:"cockroachdb"` - URI string `mapstructure:"uri" validate:"required" default:"postgres://root@localhost:26257/defaultdb"` + Driver database.Driver `mapstructure:"driver" validate:"required" default:"postgresql"` + URI string `mapstructure:"uri" validate:"required" default:"postgres://postgres:password@localhost:5432/postgres"` } type Redis struct { diff --git a/internal/database/dialer/dialer.go b/internal/database/dialer/dialer.go index 6713c6c..c092d5e 100644 --- a/internal/database/dialer/dialer.go +++ b/internal/database/dialer/dialer.go @@ -6,13 +6,13 @@ import ( "github.com/rss3-network/payment-processor/internal/config" "github.com/rss3-network/payment-processor/internal/database" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql" ) func Dial(ctx context.Context, config *config.Database) (database.Client, error) { switch config.Driver { - case database.DriverCockroachDB: - return cockroachdb.Dial(ctx, config.URI) + case database.DriverPostgreSQL: + return postgresql.Dial(ctx, config.URI) default: return nil, fmt.Errorf("unsupported driver: %s", config.Driver) } diff --git a/internal/database/dialer/cockroachdb/client.go b/internal/database/dialer/postgresql/client.go similarity index 98% rename from internal/database/dialer/cockroachdb/client.go rename to internal/database/dialer/postgresql/client.go index 285793c..244ef75 100644 --- a/internal/database/dialer/cockroachdb/client.go +++ b/internal/database/dialer/postgresql/client.go @@ -1,4 +1,4 @@ -package cockroachdb +package postgresql import ( "context" @@ -8,7 +8,7 @@ import ( "github.com/pressly/goose/v3" "github.com/rss3-network/payment-processor/internal/database" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "go.uber.org/zap" "gorm.io/driver/postgres" "gorm.io/gorm" diff --git a/internal/database/dialer/cockroachdb/client_billing.go b/internal/database/dialer/postgresql/client_billing.go similarity index 99% rename from internal/database/dialer/cockroachdb/client_billing.go rename to internal/database/dialer/postgresql/client_billing.go index 958634a..f5abd64 100644 --- a/internal/database/dialer/cockroachdb/client_billing.go +++ b/internal/database/dialer/postgresql/client_billing.go @@ -1,4 +1,4 @@ -package cockroachdb +package postgresql import ( "context" @@ -8,7 +8,7 @@ import ( "time" "github.com/ethereum/go-ethereum/common" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/schema" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/database/dialer/cockroachdb/client_checkpoint.go b/internal/database/dialer/postgresql/client_checkpoint.go similarity index 95% rename from internal/database/dialer/cockroachdb/client_checkpoint.go rename to internal/database/dialer/postgresql/client_checkpoint.go index 00a6d44..8c6ca3a 100644 --- a/internal/database/dialer/cockroachdb/client_checkpoint.go +++ b/internal/database/dialer/postgresql/client_checkpoint.go @@ -1,10 +1,10 @@ -package cockroachdb +package postgresql import ( "context" "fmt" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/schema" "gorm.io/gorm/clause" ) diff --git a/internal/database/dialer/cockroachdb/client_gateway.go b/internal/database/dialer/postgresql/client_gateway.go similarity index 96% rename from internal/database/dialer/cockroachdb/client_gateway.go rename to internal/database/dialer/postgresql/client_gateway.go index 06e8b75..0554491 100644 --- a/internal/database/dialer/cockroachdb/client_gateway.go +++ b/internal/database/dialer/postgresql/client_gateway.go @@ -1,10 +1,10 @@ -package cockroachdb +package postgresql import ( "context" "github.com/ethereum/go-ethereum/common" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "gorm.io/gorm" ) diff --git a/internal/database/dialer/cockroachdb/client_node_request_rewards.go b/internal/database/dialer/postgresql/client_node_request_rewards.go similarity index 97% rename from internal/database/dialer/cockroachdb/client_node_request_rewards.go rename to internal/database/dialer/postgresql/client_node_request_rewards.go index 071d878..90e0a76 100644 --- a/internal/database/dialer/cockroachdb/client_node_request_rewards.go +++ b/internal/database/dialer/postgresql/client_node_request_rewards.go @@ -1,4 +1,4 @@ -package cockroachdb +package postgresql import ( "context" @@ -7,7 +7,7 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/schema" "github.com/shopspring/decimal" "go.uber.org/zap" diff --git a/internal/database/dialer/cockroachdb/migration/20240412045602_paymentprocessor_initialize.sql b/internal/database/dialer/postgresql/migration/20240412045602_paymentprocessor_initialize.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240412045602_paymentprocessor_initialize.sql rename to internal/database/dialer/postgresql/migration/20240412045602_paymentprocessor_initialize.sql diff --git a/internal/database/dialer/cockroachdb/migration/20240412060447_fix_billing_records.sql b/internal/database/dialer/postgresql/migration/20240412060447_fix_billing_records.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240412060447_fix_billing_records.sql rename to internal/database/dialer/postgresql/migration/20240412060447_fix_billing_records.sql diff --git a/internal/database/dialer/cockroachdb/migration/20240412091335_add_node_request_records.sql b/internal/database/dialer/postgresql/migration/20240412091335_add_node_request_records.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240412091335_add_node_request_records.sql rename to internal/database/dialer/postgresql/migration/20240412091335_add_node_request_records.sql diff --git a/internal/database/dialer/cockroachdb/migration/20240606022850_alter_column_index_set_not_null.sql b/internal/database/dialer/postgresql/migration/20240606022850_alter_column_index_set_not_null.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240606022850_alter_column_index_set_not_null.sql rename to internal/database/dialer/postgresql/migration/20240606022850_alter_column_index_set_not_null.sql diff --git a/internal/database/dialer/cockroachdb/migration/20240606022851_use_composite_primary_key.sql b/internal/database/dialer/postgresql/migration/20240606022851_use_composite_primary_key.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240606022851_use_composite_primary_key.sql rename to internal/database/dialer/postgresql/migration/20240606022851_use_composite_primary_key.sql diff --git a/internal/database/dialer/cockroachdb/migration/20240625032621_log_epoch_in_consumption_logs.sql b/internal/database/dialer/postgresql/migration/20240625032621_log_epoch_in_consumption_logs.sql similarity index 100% rename from internal/database/dialer/cockroachdb/migration/20240625032621_log_epoch_in_consumption_logs.sql rename to internal/database/dialer/postgresql/migration/20240625032621_log_epoch_in_consumption_logs.sql diff --git a/internal/database/dialer/cockroachdb/migration/README.md b/internal/database/dialer/postgresql/migration/README.md similarity index 100% rename from internal/database/dialer/cockroachdb/migration/README.md rename to internal/database/dialer/postgresql/migration/README.md diff --git a/internal/database/dialer/cockroachdb/migration/atlas.sum b/internal/database/dialer/postgresql/migration/atlas.sum similarity index 100% rename from internal/database/dialer/cockroachdb/migration/atlas.sum rename to internal/database/dialer/postgresql/migration/atlas.sum diff --git a/internal/database/dialer/cockroachdb/table/billing_record_collected.go b/internal/database/dialer/postgresql/table/billing_record_collected.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/billing_record_collected.go rename to internal/database/dialer/postgresql/table/billing_record_collected.go diff --git a/internal/database/dialer/cockroachdb/table/billing_record_deposited.go b/internal/database/dialer/postgresql/table/billing_record_deposited.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/billing_record_deposited.go rename to internal/database/dialer/postgresql/table/billing_record_deposited.go diff --git a/internal/database/dialer/cockroachdb/table/billing_record_withdrawal.go b/internal/database/dialer/postgresql/table/billing_record_withdrawal.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/billing_record_withdrawal.go rename to internal/database/dialer/postgresql/table/billing_record_withdrawal.go diff --git a/internal/database/dialer/cockroachdb/table/checkpoint.go b/internal/database/dialer/postgresql/table/checkpoint.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/checkpoint.go rename to internal/database/dialer/postgresql/table/checkpoint.go diff --git a/internal/database/dialer/cockroachdb/table/gateway_account.go b/internal/database/dialer/postgresql/table/gateway_account.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/gateway_account.go rename to internal/database/dialer/postgresql/table/gateway_account.go diff --git a/internal/database/dialer/cockroachdb/table/gateway_consumption_log.go b/internal/database/dialer/postgresql/table/gateway_consumption_log.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/gateway_consumption_log.go rename to internal/database/dialer/postgresql/table/gateway_consumption_log.go diff --git a/internal/database/dialer/cockroachdb/table/gateway_key.go b/internal/database/dialer/postgresql/table/gateway_key.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/gateway_key.go rename to internal/database/dialer/postgresql/table/gateway_key.go diff --git a/internal/database/dialer/cockroachdb/table/gateway_pending_withdraw_request.go b/internal/database/dialer/postgresql/table/gateway_pending_withdraw_request.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/gateway_pending_withdraw_request.go rename to internal/database/dialer/postgresql/table/gateway_pending_withdraw_request.go diff --git a/internal/database/dialer/cockroachdb/table/node_request_record.go b/internal/database/dialer/postgresql/table/node_request_record.go similarity index 100% rename from internal/database/dialer/cockroachdb/table/node_request_record.go rename to internal/database/dialer/postgresql/table/node_request_record.go diff --git a/internal/database/driver.go b/internal/database/driver.go index 4b8d1ff..3d83549 100644 --- a/internal/database/driver.go +++ b/internal/database/driver.go @@ -3,7 +3,6 @@ package database type Driver string const ( - DriverCockroachDB Driver = "cockroachdb" - DriverPostgreSQL Driver = "postgresql" - DriverMySQL Driver = "mysql" + DriverPostgreSQL Driver = "postgresql" + DriverMySQL Driver = "mysql" ) diff --git a/internal/service/hub/gateway_test.go b/internal/service/hub/gateway_test.go index b09b0ab..225e84d 100644 --- a/internal/service/hub/gateway_test.go +++ b/internal/service/hub/gateway_test.go @@ -29,7 +29,7 @@ import ( "github.com/rss3-network/payment-processor/internal/config" "github.com/rss3-network/payment-processor/internal/database" "github.com/rss3-network/payment-processor/internal/database/dialer" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/internal/service/hub/handlers" jwtImpl "github.com/rss3-network/payment-processor/internal/service/hub/jwt" "github.com/rss3-network/payment-processor/internal/service/hub/model" @@ -67,8 +67,8 @@ const ( func init() { // Prepare databaseClient dbc, err := dialer.Dial(context.Background(), &config.Database{ - Driver: database.DriverCockroachDB, - URI: "postgres://root@localhost:26257/defaultdb", + Driver: database.DriverPostgreSQL, + URI: "postgres://postgres:dev@localhost:5432/postgres", }) if err != nil { log.Panic(err) diff --git a/internal/service/hub/handlers/history.go b/internal/service/hub/handlers/history.go index 9847552..dcde694 100644 --- a/internal/service/hub/handlers/history.go +++ b/internal/service/hub/handlers/history.go @@ -5,7 +5,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/internal/service/hub/gen/oapi" "github.com/rss3-network/payment-processor/internal/service/hub/model" "github.com/rss3-network/payment-processor/internal/service/hub/utils" diff --git a/internal/service/hub/handlers/withdraw.go b/internal/service/hub/handlers/withdraw.go index 0667773..10c9f19 100644 --- a/internal/service/hub/handlers/withdraw.go +++ b/internal/service/hub/handlers/withdraw.go @@ -5,7 +5,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/internal/service/hub/gen/oapi" "github.com/rss3-network/payment-processor/internal/service/hub/model" "github.com/rss3-network/payment-processor/internal/service/hub/utils" diff --git a/internal/service/hub/model/account.go b/internal/service/hub/model/account.go index 7a932a9..0d74037 100644 --- a/internal/service/hub/model/account.go +++ b/internal/service/hub/model/account.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/rss3-network/gateway-common/control" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/schema" "gorm.io/gorm" ) diff --git a/internal/service/hub/model/key.go b/internal/service/hub/model/key.go index 3a09b91..f174f41 100644 --- a/internal/service/hub/model/key.go +++ b/internal/service/hub/model/key.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/google/uuid" "github.com/rss3-network/gateway-common/control" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "gorm.io/gorm" ) diff --git a/internal/service/hub/processors/access_log.go b/internal/service/hub/processors/access_log.go index e38618c..bba7f65 100644 --- a/internal/service/hub/processors/access_log.go +++ b/internal/service/hub/processors/access_log.go @@ -7,7 +7,7 @@ import ( "strconv" "github.com/rss3-network/gateway-common/accesslog" - "github.com/rss3-network/payment-processor/internal/database/dialer/cockroachdb/table" + "github.com/rss3-network/payment-processor/internal/database/dialer/postgresql/table" "github.com/rss3-network/payment-processor/internal/service/hub/model" "go.uber.org/zap" )