forked from mtusi2026/mtusi2026lab5
chore(lab5): remove stale templates and refresh source comments
This commit is contained in:
@@ -152,7 +152,8 @@ func NewConsumer(url, queue string, logger *slog.Logger) *Consumer {
|
||||
|
||||
// Run reconnects until ctx is cancelled. concurrency bounds simultaneous
|
||||
// handlers in this process; prefetch bounds unacked messages the broker may
|
||||
// push. The two knobs are intentionally separate for the lab5 experiment.
|
||||
// push. The two knobs are intentionally separate so throughput and in-flight
|
||||
// memory can be measured independently.
|
||||
func (c *Consumer) Run(ctx context.Context, concurrency, prefetch int, handler Handler) error {
|
||||
for {
|
||||
if ctx.Err() != nil {
|
||||
|
||||
Reference in New Issue
Block a user