fix: ui for DOT

This commit is contained in:
Oarkflow
2024-10-22 17:35:56 +05:45
parent c47f8c9acc
commit 05a673bcd6
5 changed files with 27 additions and 40 deletions

View File

@@ -71,6 +71,10 @@ func (c *Consumer) SetKey(key string) {
c.id = key
}
func (c *Consumer) Metrics() Metrics {
return c.pool.Metrics()
}
func (c *Consumer) subscribe(ctx context.Context, queue string) error {
headers := HeadersWithConsumerID(ctx, c.id)
msg := codec.NewMessage(consts.SUBSCRIBE, utils.ToByte("{}"), queue, headers)