diff --git a/etc/blockchain.yaml b/etc/blockchain.yaml index 04c764d..bf54ed8 100644 --- a/etc/blockchain.yaml +++ b/etc/blockchain.yaml @@ -13,15 +13,15 @@ Binance: RedisCluster: Host: localhost:6379 - Type: node + Type: nodeda Cassandra: Hosts: - - localhost + - 10.0.0.13 Port: 9042 - Keyspace: kline + Keyspace: digimon UseAuth: true - Username: cassandra + Username: cassdandra Password: cassandra ConnectTimeoutSec: 10 NumConns: 2 diff --git a/internal/logic/blockchainservice/get_history_kline_data_logic.go b/internal/logic/blockchainservice/get_history_kline_data_logic.go index 8996b2c..81d5e94 100644 --- a/internal/logic/blockchainservice/get_history_kline_data_logic.go +++ b/internal/logic/blockchainservice/get_history_kline_data_logic.go @@ -13,7 +13,8 @@ import ( ) type GetHistoryKlineDataLogic struct { - ctx context.Context + ctx context.Context + svcCtx *svc.ServiceContext logx.Logger } diff --git a/internal/svc/service_context.go b/internal/svc/service_context.go index 6bcafef..6fe0e5c 100644 --- a/internal/svc/service_context.go +++ b/internal/svc/service_context.go @@ -36,7 +36,7 @@ func NewServiceContext(c config.Config) *ServiceContext { KeySpace: c.Cassandra.Keyspace, }) - wp, err := ants.NewPool(1024) + wp, err := ants.NewPool(4096) if err != nil { panic(err) }