mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
add more details on the payload sent to webhook audit (#20335)
This commit is contained in:
@@ -20,6 +20,7 @@ package store
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
@@ -107,17 +108,18 @@ func (store *QueueStore[_]) Delete() error {
|
||||
|
||||
// PutMultiple - puts an item to the store.
|
||||
func (store *QueueStore[I]) PutMultiple(item []I) error {
|
||||
store.Lock()
|
||||
defer store.Unlock()
|
||||
if uint64(len(store.entries)) >= store.entryLimit {
|
||||
return errLimitExceeded
|
||||
}
|
||||
// Generate a new UUID for the key.
|
||||
key, err := uuid.NewRandom()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return store.multiWrite(key.String(), item)
|
||||
|
||||
store.Lock()
|
||||
defer store.Unlock()
|
||||
if uint64(len(store.entries)) >= store.entryLimit {
|
||||
return errLimitExceeded
|
||||
}
|
||||
return store.multiWrite(fmt.Sprintf("%d:%s", len(item), key.String()), item)
|
||||
}
|
||||
|
||||
// multiWrite - writes an item to the directory.
|
||||
|
||||
Reference in New Issue
Block a user