mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fix: crash when audit webhook queue_dir is not writable (#19854)
This is regression introduced in #19275 refactor
This commit is contained in:
@@ -169,9 +169,8 @@ func (h *Target) Init(ctx context.Context) error {
|
||||
}
|
||||
|
||||
func (h *Target) initQueueStore(ctx context.Context) (err error) {
|
||||
var queueStore store.Store[interface{}]
|
||||
queueDir := filepath.Join(h.kconfig.QueueDir, h.Name())
|
||||
queueStore = store.NewQueueStore[interface{}](queueDir, uint64(h.kconfig.QueueSize), kafkaLoggerExtension)
|
||||
queueStore := store.NewQueueStore[interface{}](queueDir, uint64(h.kconfig.QueueSize), kafkaLoggerExtension)
|
||||
if err = queueStore.Open(); err != nil {
|
||||
return fmt.Errorf("unable to initialize the queue store of %s webhook: %w", h.Name(), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user