Skip to content

Commit

Permalink
fix: add missing PortNum for traceroute results
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Nov 2, 2024
1 parent b321e53 commit dcd5ca1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ class MetricsViewModel @Inject constructor(
val tracerouteState = destNum.flatMapLatest { destNum ->
combine(
meshLogRepository.getLogsFrom(nodeNum = 0, PortNum.TRACEROUTE_APP_VALUE),
meshLogRepository.getMeshPacketsFrom(destNum),
meshLogRepository.getMeshPacketsFrom(destNum, PortNum.TRACEROUTE_APP_VALUE),
) { request, response ->
val test = request.filter { it.hasValidTraceroute() }
TracerouteLogState(
requests = test,
requests = request.filter { it.hasValidTraceroute() },
results = response,
)
}
Expand Down

0 comments on commit dcd5ca1

Please sign in to comment.