Skip to content

Commit 9750d88

Browse files
committed
chore(deadcode): dedupe plugin lookup table types
1 parent fce5865 commit 9750d88

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

src/plugins/plugin-lookup-table.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,18 @@ import {
1010
isPluginMetadataSnapshotCompatible,
1111
resolvePluginMetadataSnapshot,
1212
type PluginMetadataSnapshot,
13-
type PluginMetadataSnapshotOwnerMaps,
1413
} from "./plugin-metadata-snapshot.js";
1514
import type { PluginRegistrySnapshot } from "./plugin-registry-snapshot.js";
1615

17-
export type PluginLookUpTableOwnerMaps = PluginMetadataSnapshotOwnerMaps;
18-
19-
export type PluginLookUpTableStartupPlan = GatewayStartupPluginPlan;
20-
21-
export type PluginLookUpTableMetrics = {
22-
registrySnapshotMs: number;
23-
manifestRegistryMs: number;
16+
export type PluginLookUpTableMetrics = PluginMetadataSnapshot["metrics"] & {
2417
startupPlanMs: number;
25-
ownerMapsMs: number;
26-
totalMs: number;
27-
indexPluginCount: number;
28-
manifestPluginCount: number;
2918
startupPluginCount: number;
3019
deferredChannelPluginCount: number;
3120
};
3221

3322
export type PluginLookUpTable = PluginMetadataSnapshot & {
34-
startup: PluginLookUpTableStartupPlan;
35-
metrics: PluginMetadataSnapshot["metrics"] &
36-
Pick<
37-
PluginLookUpTableMetrics,
38-
"startupPlanMs" | "startupPluginCount" | "deferredChannelPluginCount"
39-
>;
23+
startup: GatewayStartupPluginPlan;
24+
metrics: PluginLookUpTableMetrics;
4025
};
4126

4227
export type LoadPluginLookUpTableParams = {

0 commit comments

Comments
 (0)