mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-05 18:13:21 +02:00
Printing time on EOSETime class for logs
This commit is contained in:
@@ -2,7 +2,11 @@ package com.vitorpamplona.amethyst.service.relays
|
|||||||
|
|
||||||
import com.vitorpamplona.amethyst.model.User
|
import com.vitorpamplona.amethyst.model.User
|
||||||
|
|
||||||
class EOSETime(var time: Long)
|
class EOSETime(var time: Long) {
|
||||||
|
override fun toString(): String {
|
||||||
|
return time.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class EOSERelayList(var relayList: Map<String, EOSETime> = emptyMap()) {
|
class EOSERelayList(var relayList: Map<String, EOSETime> = emptyMap()) {
|
||||||
fun addOrUpdate(relayUrl: String, time: Long) {
|
fun addOrUpdate(relayUrl: String, time: Long) {
|
||||||
|
Reference in New Issue
Block a user