@forge/tunnel
5.3.3-next.0-experimental-10722bc5.5.0-next.13
out/services/register-tunnel-service.jsout/services/register-tunnel-service.js+2−11
Index: package/out/services/register-tunnel-service.js
===================================================================
--- package/out/services/register-tunnel-service.js
+++ package/out/services/register-tunnel-service.js
@@ -3,12 +3,10 @@
exports.RegisterTunnelServiceImpl = void 0;
const ONE_DAY = 1000 * 60 * 60 * 24;
class RegisterTunnelServiceImpl {
tunnelClient;
- featureFlagService;
- constructor(tunnelClient, featureFlagService) {
+ constructor(tunnelClient) {
this.tunnelClient = tunnelClient;
- this.featureFlagService = featureFlagService;
this.keepAliveActive = true;
}
keepAliveHandler;
keepAliveActive;
@@ -19,16 +17,9 @@
const expiry = await this.tunnelClient.createAppTunnels(appId, environmentKey, tunnelDefinitions);
await this.keepTunnelsAlive(appId, environmentKey, tunnelDefinitions, expiry);
}
async setupTunnel(appId, environmentKey) {
- if (await this.featureFlagService.isCloudflareTunnelEnabled()) {
- return await this.tunnelClient.setupTunnel(appId, environmentKey);
- }
- return {
- token: undefined,
- id: undefined,
- url: undefined
- };
+ return await this.tunnelClient.setupTunnel(appId, environmentKey);
}
async unregisterTunnels(appId, environmentKey) {
if (this.keepAliveHandler) {
clearTimeout(this.keepAliveHandler);