aboutsummaryrefslogtreecommitdiff
path: root/weed/messaging
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-20 17:48:06 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-20 17:48:06 -0700
commitcb3985be70c2b6eb9a0e00a04a6a02f8ebd650d5 (patch)
tree8cdf367a163a183c9dded2f7d7417cc08821bf37 /weed/messaging
parent5eb83dfbd349b069dbf1ec0b2cafc160f743e312 (diff)
downloadseaweedfs-cb3985be70c2b6eb9a0e00a04a6a02f8ebd650d5.tar.xz
seaweedfs-cb3985be70c2b6eb9a0e00a04a6a02f8ebd650d5.zip
go fmt
Diffstat (limited to 'weed/messaging')
-rw-r--r--weed/messaging/broker/topic_lock.go2
-rw-r--r--weed/messaging/client/publisher.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/messaging/broker/topic_lock.go b/weed/messaging/broker/topic_lock.go
index c98bb3159..d179537c9 100644
--- a/weed/messaging/broker/topic_lock.go
+++ b/weed/messaging/broker/topic_lock.go
@@ -18,7 +18,7 @@ type TopicPartition struct {
}
type TopicLock struct {
sync.Mutex
- cond *sync.Cond
+ cond *sync.Cond
subscriberCount int
publisherCount int
logBuffer *log_buffer.LogBuffer
diff --git a/weed/messaging/client/publisher.go b/weed/messaging/client/publisher.go
index 3480ff55d..4854ab92e 100644
--- a/weed/messaging/client/publisher.go
+++ b/weed/messaging/client/publisher.go
@@ -49,9 +49,9 @@ func (mc *MessagingClient) NewPublisher(namespace, topic string) (*Publisher, er
doneChan <- err
return
}
- if in.Redirect != nil{
+ if in.Redirect != nil {
}
- if in.Config != nil{
+ if in.Config != nil {
}
}
}()