Skip to content

Commit e0a7a32

Browse files
committed
refactor: deprecate getLiveInstrumentById
1 parent 304eeb4 commit e0a7a32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/kotlin/spp/protocol/service/LiveInstrumentService.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ interface LiveInstrumentService {
8989
fun addLiveInstruments(instruments: List<LiveInstrument>): Future<List<LiveInstrument>>
9090
fun removeLiveInstrument(id: String): Future<LiveInstrument?>
9191
fun removeLiveInstruments(location: LiveSourceLocation): Future<List<LiveInstrument>>
92+
93+
@GenIgnore
94+
fun getLiveInstrument(id: String): Future<LiveInstrument?> {
95+
return getLiveInstrumentById(id)
96+
}
97+
98+
@Deprecated("use getLiveInstrument", ReplaceWith("getLiveInstrument(id)"))
9299
fun getLiveInstrumentById(id: String): Future<LiveInstrument?>
93100
fun getLiveInstrumentsByIds(ids: List<String>): Future<List<LiveInstrument>>
94101
fun getLiveInstrumentsByLocation(location: LiveSourceLocation): Future<List<LiveInstrument>>

0 commit comments

Comments
 (0)