Skip to content

Commit

Permalink
🐛 Fixed progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi committed Mar 23, 2021
1 parent 1289315 commit 0f3d3ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plume/src/main/kotlin/io/github/plume/oss/Extractor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class Extractor(val driver: IDriver) {
// Consumer: Receive delta graphs and write changes to the driver in serial
launch {
runInsideProgressBar("Method Heads", headsToBuild.size.toLong()) { pb ->
repeat(headsToBuild.size) { launch { channel.receive().apply(driver); pb?.step() } }
repeat(headsToBuild.size) { launch { channel.receive().apply(driver) }; pb?.step() }
}
logger.debug("All ${headsToBuild.size} method heads have been applied to the driver")
}.join() // Suspend until the channel is fully consumed.
Expand All @@ -319,7 +319,7 @@ class Extractor(val driver: IDriver) {
// Consumer: Receive delta graphs and write changes to the driver in serial
launch {
runInsideProgressBar("Method Bodies", bodiesToBuild.size.toLong()) { pb ->
repeat(bodiesToBuild.size) { launch { channel.receive().apply(driver); pb?.step() } }
repeat(bodiesToBuild.size) { launch { channel.receive().apply(driver) }; pb?.step() }
}
logger.debug("All ${bodiesToBuild.size} method bodies have been applied to the driver")
}.join() // Suspend until the channel is fully consumed.
Expand All @@ -339,7 +339,7 @@ class Extractor(val driver: IDriver) {
// Consumer: Receive delta graphs and write changes to the driver in serial
launch {
runInsideProgressBar("Method Calls", bodiesToBuild.size.toLong()) { pb ->
repeat(bodiesToBuild.size) { launch { channel.receive().apply(driver); pb?.step() } }
repeat(bodiesToBuild.size) { launch { channel.receive().apply(driver) }; pb?.step() }
}
logger.debug("All ${bodiesToBuild.size} method calls have been applied to the driver")
}.join() // Suspend until the channel is fully consumed.
Expand Down

0 comments on commit 0f3d3ae

Please sign in to comment.