sourcegraph/internal/redispool
Erik Seliger 197ad80cff
gateway: Don't panic because of duplicate env var registration (#63787)
`REDIS_ENDPOINT` is now registered by gateway, but it is also registered
in `internal/redispool` as the fallback for when the other values are
not set.

The real fix would be to not have env vars in that package, and instead
each service creates one instance of each of those two in their `cmd/`,
but that's a lot of work so short-term fixing it by reading the fallback
using os.Getenv.

Test plan:

`sg run cody-gateway` doesn't panic.

---------

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2024-07-11 17:58:28 +00:00
..
BUILD.bazel chore: Remove dead code (#61899) 2024-04-16 10:17:47 +02:00
CODENOTIFY internal: add keegan to CODENOTIFY for redis packages (#46606) 2023-01-17 18:54:26 +00:00
keyvalue_test.go Periodic Rate Limit config job (#55558) 2023-08-21 20:41:40 +00:00
keyvalue.go Adding Token counting support for bring your own key customers using Redis cache (#61134) 2024-04-04 15:49:05 +00:00
mocks.go Adding Token counting support for bring your own key customers using Redis cache (#61134) 2024-04-04 15:49:05 +00:00
NOTICE redispool: implement in memory KeyValue via minimal interface (#46927) 2023-01-30 07:15:16 +00:00
redispool_test.go redispool: use postgres for redispool.Store in App (#47188) 2023-02-03 12:59:05 +00:00
redispool.go gateway: Don't panic because of duplicate env var registration (#63787) 2024-07-11 17:58:28 +00:00
sysreq.go Remove App from codebase (#59115) 2023-12-21 01:07:05 +01:00
utils.go Periodic Rate Limit config job (#55558) 2023-08-21 20:41:40 +00:00