Fix pointer struct for channels

This commit is contained in:
Александр Федорюк 2022-10-28 15:06:24 +03:00
parent 0d0c731cca
commit 09f0e56d49
2 changed files with 2 additions and 1 deletions

View File

@ -220,6 +220,7 @@ func (serve *Serve) Run() (err error) {
if err != nil {
return
}
} else {
serve.hasNats = true
}
rnd := make([]byte, 16)

View File

@ -17,7 +17,7 @@ func setup() {
}
port, exists := os.LookupEnv("NATS_PORT")
if !exists {
host = "4222"
port = "4222"
}
serve = NewServe(host, port, "", "test", nil)