Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

add missing span.End()

Eriksson Monteiro36dc244cbf75
diff --git a/api/pkg/services/in_memory_push_queue.go b/api/pkg/services/in_memory_push_queue.go
index b984d067..c57ba40f 100644
--- a/api/pkg/services/in_memory_push_queue.go
+++ b/api/pkg/services/in_memory_push_queue.go
@@ -36,6 +36,8 @@ func NewInMemoryPushQueue(
// Enqueue a task to the queue
func (queue *inMemoryPushQueue) Enqueue(ctx context.Context, task *PushQueueTask, timeout time.Duration) (queueID string, err error) {
ctx, span := queue.tracer.Start(ctx)
+ defer span.End()
+
ctxLogger := queue.tracer.CtxLogger(queue.logger, span)
queueID = uuid.New().String()