mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-03 22:53:12 +00:00
remove comments
This commit is contained in:
parent
d9c3bccc31
commit
9fceb619a2
@ -5,9 +5,6 @@ type JsonMessageReadyEvent* = ref object of JsonEvent
|
||||
messageId*: MessageID
|
||||
|
||||
proc new*(T: type JsonMessageReadyEvent, messageId: MessageID): T =
|
||||
# Returns a MessageReady event as indicated in
|
||||
# https://rfc.vac.dev/spec/36/#jsonmessageevent-type
|
||||
|
||||
return JsonMessageReadyEvent(eventType: "message_ready", messageId: messageId)
|
||||
|
||||
method `$`*(jsonMessageReady: JsonMessageReadyEvent): string =
|
||||
|
||||
@ -5,9 +5,6 @@ type JsonMessageSentEvent* = ref object of JsonEvent
|
||||
messageId*: MessageID
|
||||
|
||||
proc new*(T: type JsonMessageSentEvent, messageId: MessageID): T =
|
||||
# Returns a MessageSent event as indicated in
|
||||
# https://rfc.vac.dev/spec/36/#jsonmessageevent-type
|
||||
|
||||
return JsonMessageSentEvent(eventType: "message_sent", messageId: messageId)
|
||||
|
||||
method `$`*(jsonMessageSent: JsonMessageSentEvent): string =
|
||||
|
||||
@ -10,9 +10,6 @@ proc new*(
|
||||
messageId: MessageID,
|
||||
missingDeps: seq[MessageID],
|
||||
): T =
|
||||
# Returns a MissingDependencies event as indicated in
|
||||
# https://rfc.vac.dev/spec/36/#jsonmessageevent-type
|
||||
|
||||
return JsonMissingDependenciesEvent(
|
||||
eventType: "missing_dependencies", messageId: messageId, missingDeps: missingDeps
|
||||
)
|
||||
|
||||
@ -4,9 +4,6 @@ import ./json_base_event
|
||||
type JsonPeriodicSyncEvent* = ref object of JsonEvent
|
||||
|
||||
proc new*(T: type JsonPeriodicSyncEvent): T =
|
||||
# Returns a PeriodicSync event as indicated in
|
||||
# https://rfc.vac.dev/spec/36/#jsonmessageevent-type
|
||||
|
||||
return JsonPeriodicSyncEvent(eventType: "periodic_sync")
|
||||
|
||||
method `$`*(jsonPeriodicSync: JsonPeriodicSyncEvent): string =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user