Skip to content

Commit 253e93f

Browse files
committed
refactor
1 parent 3459745 commit 253e93f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/src/main/kotlin/spp/probe/control/LiveInstrumentRemote.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ class LiveInstrumentRemote : AbstractVerticle() {
135135

136136
private fun addInstrument(command: LiveInstrumentCommand) {
137137
if (ProbeConfiguration.isNotQuite) println("Adding instrument: $command")
138-
applyInstrument!!.invoke(null, command.context.instruments.first()) //todo: check for multiple
138+
applyInstrument!!.invoke(null, command.instruments.first()) //todo: check for multiple
139139
}
140140

141141
private fun removeInstrument(command: LiveInstrumentCommand) {
142-
for (breakpoint in command.context.instruments) {
142+
for (breakpoint in command.instruments) {
143143
val breakpointId = breakpoint.id
144144
val location = breakpoint.location
145145
removeInstrument!!.invoke(null, location.source, location.line, breakpointId)
146146
}
147-
for (location in command.context.locations) {
147+
for (location in command.locations) {
148148
removeInstrument!!.invoke(null, location.source, location.line, null)
149149
}
150150
}

0 commit comments

Comments
 (0)