Skip to content

Commit

Permalink
typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Sep 19, 2024
1 parent ccfdf8a commit b16a249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dashboard/components/RelationDependencyGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function RelationDependencyGraph({
nodes: RelationPoint[]
selectedId: string | undefined
setSelectedId: (id: string) => void
backPressures: Map<string, number> // relationId-relationId->back_pressure_rate})
backPressures?: Map<string, number> // relationId-relationId->back_pressure_rate})
}) {
const [modalData, setModalId] = useCatalogModal(nodes.map((n) => n.relation))

Expand Down
6 changes: 3 additions & 3 deletions dashboard/pages/dependency_graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ export default function StreamingGraph() {
}, [backPressureDataSource, toast, resetEmbeddedBackPressures])

// Get relationId-relationId -> backpressure rate map
const backPressures = useMemo(() => {
const backPressures: Map<string, number> | undefined = useMemo(() => {
if (!fragmentVertexToRelationMap) {
return new Map()
return new Map<string, number>()
}
let inMap = fragmentVertexToRelationMap.inMap
let outMap = fragmentVertexToRelationMap.outMap
if (prometheusMetrics || embeddedBackPressureInfo) {
let map = new Map()
let map = new Map<string, number>()

if (backPressureDataSource === "Embedded" && embeddedBackPressureInfo) {
const metrics = calculateBPRate(
Expand Down

0 comments on commit b16a249

Please sign in to comment.