aboutsummaryrefslogtreecommitdiff
path: root/weed/command/msg_broker.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-04-27 23:59:13 -0700
committerGitHub <noreply@github.com>2020-04-27 23:59:13 -0700
commit47c4a62c5db8564d036cc96c2f4a097494a2567a (patch)
tree2a6eb0dd50a530dfb72496a69715438c9aa15a44 /weed/command/msg_broker.go
parent2a7957b4ca83fdb5232d761074e81dce6b99648f (diff)
parent6850d28d6b99155dca2da8fa8bbf76124f528fa4 (diff)
downloadseaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.tar.xz
seaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.zip
Merge pull request #1293 from wyxloading/refactor_signal_handler
refactor: move signal handling and pprof to grace package
Diffstat (limited to 'weed/command/msg_broker.go')
-rw-r--r--weed/command/msg_broker.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/msg_broker.go b/weed/command/msg_broker.go
index d4d3865fa..984497c2e 100644
--- a/weed/command/msg_broker.go
+++ b/weed/command/msg_broker.go
@@ -6,6 +6,7 @@ import (
"strconv"
"time"
+ "github.com/chrislusf/seaweedfs/weed/util/grace"
"google.golang.org/grpc/reflection"
"github.com/chrislusf/seaweedfs/weed/glog"
@@ -57,7 +58,7 @@ func runMsgBroker(cmd *Command, args []string) bool {
func (msgBrokerOpt *QueueOptions) startQueueServer() bool {
- util.SetupProfiling(*messageBrokerStandaloneOptions.cpuprofile, *messageBrokerStandaloneOptions.memprofile)
+ grace.SetupProfiling(*messageBrokerStandaloneOptions.cpuprofile, *messageBrokerStandaloneOptions.memprofile)
filerGrpcAddress, err := pb.ParseFilerGrpcAddress(*msgBrokerOpt.filer)
if err != nil {