Browse Source

Add timestamp to EventConcurrencyLimited

tags/v2.0.0-rc1
9seconds 5 years ago
parent
commit
5e31b95bb5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      mtglib/proxy.go

+ 3
- 1
mtglib/proxy.go View File

74
 		case errors.Is(err, ants.ErrPoolClosed):
74
 		case errors.Is(err, ants.ErrPoolClosed):
75
 			return nil
75
 			return nil
76
 		case errors.Is(err, ants.ErrPoolOverload):
76
 		case errors.Is(err, ants.ErrPoolOverload):
77
-			p.eventStream.Send(p.ctx, EventConcurrencyLimited{})
77
+			p.eventStream.Send(p.ctx, EventConcurrencyLimited{
78
+				CreatedAt: time.Now(),
79
+			})
78
 		}
80
 		}
79
 	}
81
 	}
80
 }
82
 }

Loading…
Cancel
Save