aboutsummaryrefslogtreecommitdiff
path: root/weed/mq/client
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-12-19 19:23:27 -0800
committerchrislu <chris.lu@gmail.com>2024-12-19 19:25:06 -0800
commitec155022e7e8d0f30bfcfa169248ec3ecc40e960 (patch)
tree613416a40b45bd67bb9baf87be9843798a487914 /weed/mq/client
parenta1a76ccb8c3316baf269aa856ba268d53e0943ba (diff)
downloadseaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.tar.xz
seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.zip
"golang.org/x/exp/slices" => "slices" and go fmt
Diffstat (limited to 'weed/mq/client')
-rw-r--r--weed/mq/client/cmd/weed_pub_kv/publisher_kv.go2
-rw-r--r--weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go2
-rw-r--r--weed/mq/client/pub_client/publish.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/mq/client/cmd/weed_pub_kv/publisher_kv.go b/weed/mq/client/cmd/weed_pub_kv/publisher_kv.go
index 3ab3cb251..b4d07ae02 100644
--- a/weed/mq/client/cmd/weed_pub_kv/publisher_kv.go
+++ b/weed/mq/client/cmd/weed_pub_kv/publisher_kv.go
@@ -5,11 +5,11 @@ import (
"fmt"
"github.com/seaweedfs/seaweedfs/weed/mq/client/pub_client"
"github.com/seaweedfs/seaweedfs/weed/mq/topic"
+ util_http "github.com/seaweedfs/seaweedfs/weed/util/http"
"log"
"strings"
"sync"
"time"
- util_http "github.com/seaweedfs/seaweedfs/weed/util/http"
)
var (
diff --git a/weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go b/weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go
index 8ff667763..d51fdf7af 100644
--- a/weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go
+++ b/weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go
@@ -7,11 +7,11 @@ import (
"github.com/seaweedfs/seaweedfs/weed/mq/client/sub_client"
"github.com/seaweedfs/seaweedfs/weed/mq/topic"
"github.com/seaweedfs/seaweedfs/weed/util"
+ util_http "github.com/seaweedfs/seaweedfs/weed/util/http"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"strings"
"time"
- util_http "github.com/seaweedfs/seaweedfs/weed/util/http"
)
var (
diff --git a/weed/mq/client/pub_client/publish.go b/weed/mq/client/pub_client/publish.go
index a85eec31f..2a31a2185 100644
--- a/weed/mq/client/pub_client/publish.go
+++ b/weed/mq/client/pub_client/publish.go
@@ -50,7 +50,7 @@ func (p *TopicPublisher) FinishPublish() error {
inputBuffer.Enqueue(&mq_pb.DataMessage{
TsNs: time.Now().UnixNano(),
Ctrl: &mq_pb.ControlMessage{
- IsClose: true,
+ IsClose: true,
PublisherName: p.config.PublisherName,
},
})