From 074e1b06ae7a1a8e1211bb32efd3b8f21db50367 Mon Sep 17 00:00:00 2001 From: mochi-co Date: Mon, 18 Mar 2024 04:10:16 +0000 Subject: [PATCH] fix docker image --- cmd/docker/main.go | 10 ---------- config.yaml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/docker/main.go b/cmd/docker/main.go index a53d27cc..d5c0a90a 100644 --- a/cmd/docker/main.go +++ b/cmd/docker/main.go @@ -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) diff --git a/config.yaml b/config.yaml index 890380b2..9bd37983 100644 --- a/config.yaml +++ b/config.yaml @@ -1,6 +1,6 @@ listeners: - type: "tcp" - id: "tcp12" + id: "tcp1" address: ":1883" - type: "ws" id: "ws1"