query
This commit is contained in:
parent
4639e6a347
commit
d094dbd5ff
|
|
@ -89,11 +89,13 @@ func (r *ConsumeConfig) Start(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ConsumeConfig) consumer(ctx context.Context, queueName string, value string) {
|
func (r *ConsumeConfig) consumer(ctx context.Context, queueName string, value string) {
|
||||||
if err := r.Fn(ctx, value); err == nil {
|
err := r.Fn(ctx, value)
|
||||||
r.Logger.Errorf("BLPop on %s Failed to process message [%s] after retry %d times, err[%v]\n", queueName, value, r.RetryNum, err)
|
|
||||||
|
if err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.Logger.Errorf("BLPop on %s Failed to process message [%s] after retry %d times, err[%v]\n", queueName, value, r.RetryNum, err)
|
||||||
if r.RetryNum > 0 {
|
if r.RetryNum > 0 {
|
||||||
r.retry(ctx, queueName, value)
|
r.retry(ctx, queueName, value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue