Remove redis in txHash store (#1112)

This commit is contained in:
ftocal 2024-02-08 12:10:13 -03:00 committed by GitHub
parent a984bcb061
commit c9bc9660f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -57,10 +57,6 @@ func NewTxHashStore(ctx context.Context, config *config.Configuration, metrics m
var txHashStores []txhash.TxHashStore
txHashStores = append(txHashStores, txhash.NewCacheTxHash(cacheTxHash, 30*time.Minute, logger))
if !config.IsLocal {
redisClient := NewRedisClient(config)
txHashStores = append(txHashStores, txhash.NewRedisTxHash(redisClient, config.Redis.RedisPrefix, 30*time.Minute, logger))
}
txHashStores = append(txHashStores, txhash.NewMongoTxHash(db, logger))
txHashStore := txhash.NewComposite(txHashStores, metrics, logger)
dedupTxHashStore := txhash.NewDedupTxHashStore(txHashStore, deduplicator, logger)