Browse Source

clean up unused variables

pull/5890/head
chrislu 8 months ago
parent
commit
8cc5298a08
  1. 1
      weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go
  2. 1
      weed/mq/client/cmd/weed_sub_record/subscriber_record.go
  3. 3
      weed/mq/client/sub_client/subscriber.go

1
weed/mq/client/cmd/weed_sub_kv/subscriber_kv.go

@ -25,7 +25,6 @@ func main() {
flag.Parse()
subscriberConfig := &sub_client.SubscriberConfiguration{
ClientId: fmt.Sprintf("client-%d", *clientId),
ConsumerGroup: "test",
ConsumerGroupInstanceId: fmt.Sprintf("client-%d", *clientId),
GrpcDialOption: grpc.WithTransportCredentials(insecure.NewCredentials()),

1
weed/mq/client/cmd/weed_sub_record/subscriber_record.go

@ -51,7 +51,6 @@ func main() {
flag.Parse()
subscriberConfig := &sub_client.SubscriberConfiguration{
ClientId: fmt.Sprintf("client-%d", *clientId),
ConsumerGroup: "test",
ConsumerGroupInstanceId: fmt.Sprintf("client-%d", *clientId),
GrpcDialOption: grpc.WithTransportCredentials(insecure.NewCredentials()),

3
weed/mq/client/sub_client/subscriber.go

@ -11,9 +11,6 @@ type SubscriberConfiguration struct {
ClientId string
ConsumerGroup string
ConsumerGroupInstanceId string
GroupMinimumPeers int32
GroupMaximumPeers int32
BootstrapServers []string
GrpcDialOption grpc.DialOption
}

Loading…
Cancel
Save