From e311490604ad8335f710c1ff7e7f27cc08b19d9b Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 17 Nov 2024 13:59:31 -0800 Subject: [PATCH] remove unused function --- weed/mq/broker/broker_grpc_configure.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/weed/mq/broker/broker_grpc_configure.go b/weed/mq/broker/broker_grpc_configure.go index 81bed2c9d..6130a8598 100644 --- a/weed/mq/broker/broker_grpc_configure.go +++ b/weed/mq/broker/broker_grpc_configure.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/mq/pub_balancer" - "github.com/seaweedfs/seaweedfs/weed/mq/schema" "github.com/seaweedfs/seaweedfs/weed/mq/topic" "github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb/mq_pb" @@ -30,9 +29,6 @@ func (b *MessageQueueBroker) ConfigureTopic(ctx context.Context, request *mq_pb. // validate the schema if request.RecordType != nil { - if _, err = schema.NewSchema(request.Topic.Namespace, request.Topic.Name, request.RecordType); err != nil { - return nil, status.Errorf(codes.InvalidArgument, "invalid record type %+v: %v", request.RecordType, err) - } } t := topic.FromPbTopic(request.Topic)