aboutsummaryrefslogtreecommitdiff
path: root/weed/messaging/client/publisher.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-19 03:03:40 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-19 03:03:40 -0700
commit71ffb98475d05c7e76e8c46a9525f29ef97f6228 (patch)
tree133b4b4d5bbe685ac33334ec2e6ef759a619b71a /weed/messaging/client/publisher.go
parentd278b4c228905694a24cca2c9d08d8b8faa905bb (diff)
downloadseaweedfs-71ffb98475d05c7e76e8c46a9525f29ef97f6228.tar.xz
seaweedfs-71ffb98475d05c7e76e8c46a9525f29ef97f6228.zip
broker: add profiling
Diffstat (limited to 'weed/messaging/client/publisher.go')
-rw-r--r--weed/messaging/client/publisher.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/messaging/client/publisher.go b/weed/messaging/client/publisher.go
index d4c0f798a..238b67783 100644
--- a/weed/messaging/client/publisher.go
+++ b/weed/messaging/client/publisher.go
@@ -69,8 +69,7 @@ func (p *Publisher) Publish(m *messaging_pb.RawData) error {
}
-func (p *Publisher) Shutdown() {
-
- p.publishClient.CloseSend()
+func (p *Publisher) Close() error {
+ return p.publishClient.CloseSend()
}