mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-10-24 00:23:17 +08:00
bytes buffer to pool
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
@@ -11,9 +12,14 @@ import (
|
||||
|
||||
"github.com/mochi-co/mqtt"
|
||||
"github.com/mochi-co/mqtt/internal/listeners"
|
||||
|
||||
_ "net/http/pprof"
|
||||
)
|
||||
|
||||
func main() {
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
|
||||
sigs := make(chan os.Signal, 1)
|
||||
done := make(chan bool, 1)
|
||||
|
Reference in New Issue
Block a user