Skip to content

Commit 074e1b0

Browse files
author
mochi-co
committed
fix docker image
1 parent 26418c6 commit 074e1b0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Diff for: cmd/docker/main.go

-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package main
66

77
import (
88
"flag"
9-
"fmt"
109
"github.com/mochi-mqtt/server/v2/config"
1110
"log"
1211
"log/slog"
@@ -23,15 +22,6 @@ func main() {
2322
configFile := flag.String("config", "config.yaml", "path to mochi config yaml or json file")
2423
flag.Parse()
2524

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-
3525
sigs := make(chan os.Signal, 1)
3626
done := make(chan bool, 1)
3727
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)

Diff for: config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
listeners:
22
- type: "tcp"
3-
id: "tcp12"
3+
id: "tcp1"
44
address: ":1883"
55
- type: "ws"
66
id: "ws1"

0 commit comments

Comments
 (0)