Skip to content

Commit

Permalink
return integer value as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Jun 16, 2021
1 parent a939ced commit f1aed89
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ class GetCommandListener(
flushCtxTransactionAware()
} else {
try {
writeResponse(record.bins[aeroCtx.bin])
val value = record.bins[aeroCtx.bin]
writeResponse(
when (value) {
is Long -> value.toString()
else -> value
}
)
flushCtxTransactionAware()
} catch (e: Exception) {
closeCtx(e)
Expand Down

0 comments on commit f1aed89

Please sign in to comment.