Skip to content

Commit

Permalink
fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mochi-co committed Mar 18, 2024
1 parent 26418c6 commit 074e1b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions cmd/docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package main

import (
"flag"
"fmt"
"github.com/mochi-mqtt/server/v2/config"
"log"
"log/slog"
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
listeners:
- type: "tcp"
id: "tcp12"
id: "tcp1"
address: ":1883"
- type: "ws"
id: "ws1"
Expand Down

0 comments on commit 074e1b0

Please sign in to comment.