mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 04:56:38 +00:00
- re-vendor queue-worker for publisher via 0.6.0 - bump queue-worker version to 0.6.0 in docker-compose.yml for AMD64 - use new naming for NATS of nats -> NATS in variables where required - add default reconnect of 60 times, 2 seconds apart. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
8 lines
193 B
Go
8 lines
193 B
Go
package nats
|
|
|
|
import "regexp"
|
|
|
|
var supportedCharacters = regexp.MustCompile("[^a-zA-Z0-9-_]+")
|
|
func GetClientID(value string) string {
|
|
return supportedCharacters.ReplaceAllString(value, "_")
|
|
} |