We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26418c6 commit 074e1b0Copy full SHA for 074e1b0
cmd/docker/main.go
@@ -6,7 +6,6 @@ package main
6
7
import (
8
"flag"
9
- "fmt"
10
"github.com/mochi-mqtt/server/v2/config"
11
"log"
12
"log/slog"
@@ -23,15 +22,6 @@ func main() {
23
22
configFile := flag.String("config", "config.yaml", "path to mochi config yaml or json file")
24
flag.Parse()
25
26
- entries, err := os.ReadDir("./")
27
- if err != nil {
28
- log.Fatal(err)
29
- }
30
-
31
- for _, e := range entries {
32
- fmt.Println(e.Name())
33
34
35
sigs := make(chan os.Signal, 1)
36
done := make(chan bool, 1)
37
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
config.yaml
@@ -1,6 +1,6 @@
1
listeners:
2
- type: "tcp"
3
- id: "tcp12"
+ id: "tcp1"
4
address: ":1883"
5
- type: "ws"
id: "ws1"
0 commit comments