Skip to content

Commit b0f45cf

Browse files
committed
nullable throttle
1 parent 69b1657 commit b0f45cf

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/commonMain/kotlin/spp.protocol/instrument/InstrumentThrottle.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ data class InstrumentThrottle(
1515
) {
1616
companion object {
1717
val DEFAULT: InstrumentThrottle = InstrumentThrottle(1, ThrottleStep.SECOND)
18-
//todo: no throttle
1918
}
2019
}

src/commonMain/kotlin/spp.protocol/instrument/LiveInstrument.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class LiveInstrument {
2020
abstract val applyImmediately: Boolean
2121
abstract val applied: Boolean
2222
abstract val pending: Boolean
23-
abstract val throttle: InstrumentThrottle
23+
abstract val throttle: InstrumentThrottle?
2424
abstract val meta: Map<String, @Contextual Any>
2525

2626
override fun equals(other: Any?): Boolean {

src/commonMain/kotlin/spp.protocol/instrument/meter/LiveMeter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data class LiveMeter(
2525
override val applyImmediately: Boolean = false,
2626
override val applied: Boolean = false,
2727
override val pending: Boolean = false,
28-
override val throttle: InstrumentThrottle = InstrumentThrottle.DEFAULT,
28+
override val throttle: InstrumentThrottle? = null,
2929
override val meta: Map<String, @Contextual Any> = emptyMap()
3030
) : LiveInstrument() {
3131
override val type: LiveInstrumentType = LiveInstrumentType.METER

0 commit comments

Comments
 (0)