Skip to content

Commit 90a0782

Browse files
committed
refactor
1 parent e6ab057 commit 90a0782

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jvmMain/kotlin/spp/protocol/SourceServices.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ package spp.protocol
1919

2020
import spp.protocol.SourceServices.Utilize.LIVE_INSTRUMENT
2121
import spp.protocol.SourceServices.Utilize.LIVE_VIEW
22-
import spp.protocol.service.LiveService
2322
import spp.protocol.service.LiveInstrumentService
23+
import spp.protocol.service.LiveService
2424
import spp.protocol.service.LiveViewService
2525
import spp.protocol.service.LogCountIndicatorService
2626

@@ -49,5 +49,8 @@ object SourceServices {
4949
object Provide {
5050
const val LIVE_INSTRUMENT_SUBSCRIBER = "$LIVE_INSTRUMENT.subscriber"
5151
const val LIVE_VIEW_SUBSCRIBER = "$LIVE_VIEW.subscriber"
52+
53+
fun toLiveInstrumentSubscriberAddress(selfId: String): String = "$LIVE_INSTRUMENT_SUBSCRIBER:$selfId"
54+
fun toLiveViewSubscriberAddress(selfId: String): String = "$LIVE_VIEW_SUBSCRIBER:$selfId"
5255
}
5356
}

0 commit comments

Comments
 (0)