Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsasari committed May 24, 2019
1 parent 5619deb commit a70bd6f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ class CheckpointDumper(private val checkpointStorage: CheckpointStorage, private
}
}

private val formatter = DateTimeFormatter.ofPattern("HHmmss.SSS")

fun dump(id: UUID, checkpoint: Checkpoint) {
val info = checkpoint.toJson(id)
val file = serviceHub.configuration.baseDirectory / "$id-${formatter.format(LocalTime.now(serviceHub.clock))}.json"
writer.writeValue(file.toFile(), info)
}

private fun Checkpoint.toJson(id: UUID): CheckpointJson {
val (fiber, flowLogic) = when (flowState) {
is FlowState.Unstarted -> {
Expand Down

0 comments on commit a70bd6f

Please sign in to comment.