mirror of
https://github.com/mochi-mqtt/server.git
synced 2024-08-01 23:29:35 +08:00
fix docker image
This commit is contained in:
parent
26418c6fd8
commit
074e1b06ae
@ -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)
|
||||
|
@ -1,6 +1,6 @@
|
||||
listeners:
|
||||
- type: "tcp"
|
||||
id: "tcp12"
|
||||
id: "tcp1"
|
||||
address: ":1883"
|
||||
- type: "ws"
|
||||
id: "ws1"
|
||||
|
Loading…
Reference in New Issue
Block a user