(refconfig.Check==nil&&consumerConfig.Check==nil){//default to true
ifrefconfig.invoker!=nil&&
!refconfig.invoker.IsAvailable(){
checkok=false
count++
ifcount>maxWait{
errMsg:=fmt.Sprintf("Failed to check the status of the service %v . No provider available for the service to the consumer use dubbo version %v",refconfig.InterfaceName,constant.Version)
logger.Error(errMsg)
panic(errMsg)
}
time.Sleep(time.Second*1)
break
}
ifrefconfig.invoker==nil{
logger.Warnf("The interface %s invoker not exist , may you should check your interface config.",refconfig.InterfaceName)
//wait for invoker is available, if wait over default 3s, then panic
(refconfig.Check==nil&&consumerConfig.Check==nil){//default to true
ifrefconfig.invoker!=nil&&
!refconfig.invoker.IsAvailable(){
checkok=false
count++
ifcount>maxWait{
errMsg:=fmt.Sprintf("Failed to check the status of the service %v . No provider available for the service to the consumer use dubbo version %v",refconfig.InterfaceName,constant.Version)
logger.Error(errMsg)
panic(errMsg)
}
time.Sleep(time.Second*1)
break
}
ifrefconfig.invoker==nil{
logger.Warnf("The interface %s invoker not exist , may you should check your interface config.",refconfig.InterfaceName)