[fix] remove time sleep when
referenceConfig.GenericLoad
@@ -21,7 +21,6 @@ import (
"context"
"strings"
"sync"
- "time"
)
import (
@@ -300,11 +299,8 @@ func (dc *Client) create(key string, irequest fc.IntegrationRequest) *dg.Generic
dc.lock.Lock()
defer dc.lock.Unlock()
referenceConfig.GenericLoad(key)
- //TODO: fix it later
- // sleep to wait invoker create
- time.Sleep(500 * time.Millisecond)
- clientService := referenceConfig.GetRPCService().(*dg.GenericService)
+ clientService := referenceConfig.GetRPCService().(*dg.GenericService)
dc.GenericServicePool[key] = clientService
return clientService
}
