Create queue producers in pipeline phase (#8643)

This commit is contained in:
Kristina
2025-04-22 08:47:33 +07:00
committed by GitHub
parent 7721300186
commit a1c74384ec
13 changed files with 75 additions and 96 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class DummyQueueProducer<T> implements PlatformQueueProducer<T> {
* A dummy implementation of PlatformQueue for testing and development
*/
export class DummyQueue implements PlatformQueue {
createProducer<T>(ctx: MeasureContext, topic: QueueTopic | string): PlatformQueueProducer<T> {
getProducer<T>(ctx: MeasureContext, topic: QueueTopic | string): PlatformQueueProducer<T> {
return new DummyQueueProducer<T>()
}
+1 -1
View File
@@ -35,7 +35,7 @@ export interface ConsumerControl {
}
export interface PlatformQueue {
createProducer: <T>(ctx: MeasureContext, topic: QueueTopic | string) => PlatformQueueProducer<T>
getProducer: <T>(ctx: MeasureContext, topic: QueueTopic | string) => PlatformQueueProducer<T>
/**
* Create a consumer for a topic.