Skip to content

Commit

Permalink
fix: remove required redis configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Nov 4, 2024
1 parent 7a64f29 commit 115f681
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
9 changes: 6 additions & 3 deletions cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,18 @@ func main() {
os.Exit(1)
}

cache, err := cache.New(cache.CacheOpts{
cacheOpts := cache.CacheOpts{
Chain: chain,
Registries: ko.Strings("bootstrap.ge_registries"),
Watchlist: ko.Strings("bootstrap.watchlist"),
Blacklist: ko.Strings("bootstrap.blacklist"),
CacheType: ko.MustString("core.cache_type"),
RedisDSN: ko.MustString("redis.dsn"),
Logg: lo,
})
}
if ko.MustString("core.cache_type") == "redis" {
cacheOpts.RedisDSN = ko.MustString("redis.dsn")
}
cache, err := cache.New(cacheOpts)
if err != nil {
lo.Error("could not initialize cache", "error", err)
os.Exit(1)
Expand Down
13 changes: 0 additions & 13 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
services:
redis:
image: redis:7-alpine
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning
volumes:
- tracker-redis:/data
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 5
nats:
image: nats:2
restart: unless-stopped
Expand Down

0 comments on commit 115f681

Please sign in to comment.