mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Send kafka notification messages in batches when queue_dir is enabled (#18164)
Fixes #18124
This commit is contained in:
@@ -349,9 +349,9 @@ func New(config Config) *Target {
|
||||
}
|
||||
|
||||
// SendFromStore - reads the log from store and sends it to webhook.
|
||||
func (h *Target) SendFromStore(key string) (err error) {
|
||||
func (h *Target) SendFromStore(key store.Key) (err error) {
|
||||
var eventData interface{}
|
||||
eventData, err = h.store.Get(key)
|
||||
eventData, err = h.store.Get(key.Name)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
@@ -372,7 +372,7 @@ func (h *Target) SendFromStore(key string) (err error) {
|
||||
return err
|
||||
}
|
||||
// Delete the event from store.
|
||||
return h.store.Del(key)
|
||||
return h.store.Del(key.Name)
|
||||
}
|
||||
|
||||
// Send the log message 'entry' to the http target.
|
||||
|
||||
Reference in New Issue
Block a user