mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 14:23:25 +00:00
Migrate to Go 1.18 and update dependencies
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
committed by
Alex Ellis
parent
2e14a34243
commit
b87b96ae45
9
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
9
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
@ -2,7 +2,6 @@ package handler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
@ -33,7 +32,13 @@ type NATSQueue struct {
|
||||
|
||||
// Queue request for processing
|
||||
func (q *NATSQueue) Queue(req *ftypes.QueueRequest) error {
|
||||
fmt.Printf("NatsQueue - submitting request: %s.\n", req.Function)
|
||||
callId := ""
|
||||
|
||||
if v := req.Header.Get("X-Call-Id"); len(v) > 0 {
|
||||
callId = v
|
||||
}
|
||||
|
||||
log.Printf("[%s] Queueing (%d) bytes for: %s.\n", callId, len(req.Body), req.Function)
|
||||
|
||||
out, err := json.Marshal(req)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user