mirror of
https://github.com/fatedier/frp.git
synced 2025-08-02 12:07:20 +00:00
client: add StatusExporter in service (#4182)
This commit is contained in:
@@ -363,11 +363,13 @@ func (s *TunnelServer) waitProxyStatusReady(name string, timeout time.Duration)
|
||||
timer := time.NewTimer(timeout)
|
||||
defer timer.Stop()
|
||||
|
||||
statusExporter := s.vc.Service().StatusExporter()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
ps, err := s.vc.Service().GetProxyStatus(name)
|
||||
if err != nil {
|
||||
ps, ok := statusExporter.GetProxyStatus(name)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
switch ps.Phase {
|
||||
|
Reference in New Issue
Block a user