2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-21 08:10:19 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Khash Sajadi
c327bc40a2
docs: Update server.go (#1010)
Typo in the docs
2025-04-01 09:06:12 +03:00
Broderick Westrope
ea0c6e93f0
chore: fix godoc comment (#1009) 2025-04-01 09:05:18 +03:00

View File

@ -174,16 +174,15 @@ type Config struct {
// }) // })
// //
// ErrorHandler: asynq.ErrorHandlerFunc(reportError) // ErrorHandler: asynq.ErrorHandlerFunc(reportError)
//
// we can also handle panic error like: // we can also handle panic error like:
// func reportError(ctx context, task *asynq.Task, err error) { // func reportError(ctx context, task *asynq.Task, err error) {
// if asynq.IsPanic(err) { // if asynq.IsPanicError(err) {
// errorReportingService.Notify(err) // errorReportingService.Notify(err)
// } // }
// }) // })
// //
// ErrorHandler: asynq.ErrorHandlerFunc(reportError) // ErrorHandler: asynq.ErrorHandlerFunc(reportError)
ErrorHandler ErrorHandler ErrorHandler ErrorHandler
// Logger specifies the logger used by the server instance. // Logger specifies the logger used by the server instance.