mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 11:56:29 +00:00
Migrate away from queue type in faas project
The queue type now resides in the provider, so that there is no risk of a circular reference. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
06a51373e2
commit
58394bb1de
4
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
4
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
@ -8,7 +8,7 @@ import (
|
||||
"time"
|
||||
|
||||
stan "github.com/nats-io/stan.go"
|
||||
"github.com/openfaas/faas/gateway/queue"
|
||||
ftypes "github.com/openfaas/faas-provider/types"
|
||||
)
|
||||
|
||||
// NATSQueue queue for work
|
||||
@ -32,7 +32,7 @@ type NATSQueue struct {
|
||||
}
|
||||
|
||||
// Queue request for processing
|
||||
func (q *NATSQueue) Queue(req *queue.Request) error {
|
||||
func (q *NATSQueue) Queue(req *ftypes.QueueRequest) error {
|
||||
fmt.Printf("NatsQueue - submitting request: %s.\n", req.Function)
|
||||
|
||||
out, err := json.Marshal(req)
|
||||
|
Reference in New Issue
Block a user