@@ -34,7 +34,7 @@ type Admin interface {
3434 CreateTopic (ctx context.Context , opts ... OptionCreate ) error
3535 DeleteTopic (ctx context.Context , opts ... OptionDelete ) error
3636
37- GetAllSubscriptionGroup (ctx context.Context , brokerAddr string ) (* SubscriptionGroupWrapper , error )
37+ GetAllSubscriptionGroup (ctx context.Context , brokerAddr string , timeoutMillis time. Duration ) (* SubscriptionGroupWrapper , error )
3838 FetchAllTopicList (ctx context.Context ) (* TopicList , error )
3939 //GetBrokerClusterInfo(ctx context.Context) (*remote.RemotingCommand, error)
4040 FetchPublishMessageQueues (ctx context.Context , topic string ) ([]* primitive.MessageQueue , error )
@@ -109,10 +109,10 @@ func NewAdmin(opts ...AdminOption) (*admin, error) {
109109 }, nil
110110}
111111
112- func (a * admin ) GetAllSubscriptionGroup (ctx context.Context , brokerAddr string ) (* SubscriptionGroupWrapper , error ) {
112+ func (a * admin ) GetAllSubscriptionGroup (ctx context.Context , brokerAddr string , timeoutMillis time. Duration ) (* SubscriptionGroupWrapper , error ) {
113113 cmd := remote .NewRemotingCommand (internal .ReqGetAllSubscriptionGroupConfig , nil , nil )
114114 a .cli .RegisterACL ()
115- response , err := a .cli .InvokeSync (ctx , brokerAddr , cmd , 3 * time . Second )
115+ response , err := a .cli .InvokeSync (ctx , brokerAddr , cmd , timeoutMillis )
116116 if err != nil {
117117 rlog .Error ("Get all group list error" , map [string ]interface {}{
118118 rlog .LogKeyUnderlayError : err ,
0 commit comments