File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package main
6
6
7
7
import (
8
8
"flag"
9
- "fmt"
10
9
"github.com/mochi-mqtt/server/v2/config"
11
10
"log"
12
11
"log/slog"
@@ -23,15 +22,6 @@ func main() {
23
22
configFile := flag .String ("config" , "config.yaml" , "path to mochi config yaml or json file" )
24
23
flag .Parse ()
25
24
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
-
35
25
sigs := make (chan os.Signal , 1 )
36
26
done := make (chan bool , 1 )
37
27
signal .Notify (sigs , syscall .SIGINT , syscall .SIGTERM )
Original file line number Diff line number Diff line change 1
1
listeners :
2
2
- type : " tcp"
3
- id : " tcp12 "
3
+ id : " tcp1 "
4
4
address : " :1883"
5
5
- type : " ws"
6
6
id : " ws1"
You can’t perform that action at this time.
0 commit comments