Skip to content

Commit d4e59ed

Browse files
Don't initialize index storage with stable checkpoint publishing (#2486)
This was leftover from when the index storage was exclusively Redis. We should not initialize index storage if only enable_stable_checkpoint is set, since this will try to create a storage provider from a flag that may be unset. Signed-off-by: Hayden B <[email protected]>
1 parent 255b324 commit d4e59ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/api/api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ func ConfigureAPI(treeID uint) {
239239
if err != nil {
240240
log.Logger.Panic(err)
241241
}
242-
if viper.GetBool("enable_retrieve_api") || viper.GetBool("enable_stable_checkpoint") ||
243-
slices.Contains(viper.GetStringSlice("enabled_api_endpoints"), "searchIndex") {
242+
if viper.GetBool("enable_retrieve_api") || slices.Contains(viper.GetStringSlice("enabled_api_endpoints"), "searchIndex") {
244243
indexStorageClient, err = indexstorage.NewIndexStorage(viper.GetString("search_index.storage_provider"))
245244
if err != nil {
246245
log.Logger.Panic(err)

0 commit comments

Comments
 (0)