diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-07-16 23:39:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 23:39:27 -0700 |
| commit | 69553e5ba6d46ed924b0c3adc3f8d9666550999a (patch) | |
| tree | 7711c4d9fe1919d2c6eaa841779bcde6e24b0248 /weed/notification/webhook/webhook_queue.go | |
| parent | a524b4f485ce5aa2f234c742bd7d1e75386f569b (diff) | |
| download | seaweedfs-69553e5ba6d46ed924b0c3adc3f8d9666550999a.tar.xz seaweedfs-69553e5ba6d46ed924b0c3adc3f8d9666550999a.zip | |
convert error fromating to %w everywhere (#6995)
Diffstat (limited to 'weed/notification/webhook/webhook_queue.go')
| -rw-r--r-- | weed/notification/webhook/webhook_queue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/notification/webhook/webhook_queue.go b/weed/notification/webhook/webhook_queue.go index f5853dc2d..b1b21bc9a 100644 --- a/weed/notification/webhook/webhook_queue.go +++ b/weed/notification/webhook/webhook_queue.go @@ -120,7 +120,7 @@ func (w *Queue) setupWatermillQueue(cfg *config) error { logger, ) if err != nil { - return fmt.Errorf("failed to create router: %v", err) + return fmt.Errorf("failed to create router: %w", err) } w.router = router @@ -135,7 +135,7 @@ func (w *Queue) setupWatermillQueue(cfg *config) error { poisonQueue, err := middleware.PoisonQueue(w.queueChannel, deadLetterTopic) if err != nil { - return fmt.Errorf("failed to create poison queue: %v", err) + return fmt.Errorf("failed to create poison queue: %w", err) } router.AddPlugin(plugin.SignalsHandler) |
