mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Updates for NATS Streaming support
NATS Streaming is deprecated and will be removed from OpenFaaS CE in a future release for security reasons. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
7
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/handler.go
generated
vendored
7
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/handler.go
generated
vendored
@ -6,7 +6,10 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
// CreateNATSQueue ready for asynchronous processing
|
||||
const sharedQueue = "faas-request"
|
||||
|
||||
// CreateNATSQueue ready for asynchronous message processing of paylods of
|
||||
// up to a maximum of 256KB in size.
|
||||
func CreateNATSQueue(address string, port int, clusterName, channel string, clientConfig NATSConfig) (*NATSQueue, error) {
|
||||
var err error
|
||||
natsURL := fmt.Sprintf("nats://%s:%d", address, port)
|
||||
@ -16,7 +19,7 @@ func CreateNATSQueue(address string, port int, clusterName, channel string, clie
|
||||
|
||||
// If 'channel' is empty, use the previous default.
|
||||
if channel == "" {
|
||||
channel = "faas-request"
|
||||
channel = sharedQueue
|
||||
}
|
||||
|
||||
queue1 := NATSQueue{
|
||||
|
Reference in New Issue
Block a user