File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
src/commonMain/kotlin/spp.protocol/instrument Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments