fix docker image

This commit is contained in:
mochi-co 2024-03-18 04:10:16 +00:00
parent 26418c6fd8
commit 074e1b06ae
2 changed files with 1 additions and 11 deletions

View File

@ -6,7 +6,6 @@ package main
import (
"flag"
"fmt"
"github.com/mochi-mqtt/server/v2/config"
"log"
"log/slog"
@ -23,15 +22,6 @@ func main() {
configFile := flag.String("config", "config.yaml", "path to mochi config yaml or json file")
flag.Parse()
entries, err := os.ReadDir("./")
if err != nil {
log.Fatal(err)
}
for _, e := range entries {
fmt.Println(e.Name())
}
sigs := make(chan os.Signal, 1)
done := make(chan bool, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)

View File

@ -1,6 +1,6 @@
listeners:
- type: "tcp"
id: "tcp12"
id: "tcp1"
address: ":1883"
- type: "ws"
id: "ws1"