Skip to content

Commit 83e86a4

Browse files
committed
fix
1 parent 00543d6 commit 83e86a4

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

components/server/src/messaging/redis-subscriber.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
WorkspaceInstanceUpdatesChannel,
2323
} from "@gitpod/gitpod-protocol";
2424
import { log } from "@gitpod/gitpod-protocol/lib/util/logging";
25-
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server";
2625
import {
2726
reportRedisUpdateCompleted,
2827
reportRedisUpdateReceived,
@@ -73,37 +72,12 @@ export class RedisSubscriber {
7372
private async onMessage(channel: string, message: string): Promise<void> {
7473
switch (channel) {
7574
case WorkspaceInstanceUpdatesChannel:
76-
const wsInstanceTypeEnabled = await this.isRedisPubSubByTypeEnabled("workspace-instance");
77-
if (!wsInstanceTypeEnabled) {
78-
log.debug("[redis] Redis workspace instance update is disabled through feature flag", {
79-
channel,
80-
message,
81-
});
82-
return;
83-
}
84-
8575
return this.onInstanceUpdate(JSON.parse(message) as RedisWorkspaceInstanceUpdate);
8676

8777
case PrebuildUpdatesChannel:
88-
const prebuildTypeEnabled = await this.isRedisPubSubByTypeEnabled("prebuild");
89-
if (!prebuildTypeEnabled) {
90-
log.debug("[redis] Redis prebuild update is disabled through feature flag", {
91-
channel,
92-
message,
93-
});
94-
return;
95-
}
9678
return this.onPrebuildUpdate(JSON.parse(message) as RedisPrebuildUpdate);
9779

9880
case HeadlessUpdatesChannel:
99-
const headlessTypeEnabled = await this.isRedisPubSubByTypeEnabled("prebuild-updatable");
100-
if (!headlessTypeEnabled) {
101-
log.debug("[redis] Redis headless update is disabled through feature flag", {
102-
channel,
103-
message,
104-
});
105-
return;
106-
}
10781
return this.onHeadlessUpdate(JSON.parse(message) as RedisHeadlessUpdate);
10882

10983
default:
@@ -242,16 +216,4 @@ export class RedisSubscriber {
242216
}
243217
});
244218
}
245-
246-
private async isRedisPubSubByTypeEnabled(
247-
type: "workspace-instance" | "prebuild" | "prebuild-updatable",
248-
): Promise<boolean> {
249-
const enabledTypes = await getExperimentsClientForBackend().getValueAsync(
250-
"enableRedisPubSubByUpdateType",
251-
"none",
252-
{},
253-
);
254-
log.debug("Enabled types in redis publisher:", enabledTypes);
255-
return enabledTypes.indexOf(type) >= 0;
256-
}
257219
}

0 commit comments

Comments
 (0)