Skip to content

Commit 93bb915

Browse files
authored
Apply suggestions from code review
1 parent 899b691 commit 93bb915

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

engine/access/rest/websockets/models/account_models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package models
22

33
// AccountStatusesResponse is the response message for 'events' topic.
44
type AccountStatusesResponse struct {
5-
BlockID string `json:"blockID"`
5+
BlockID string `json:"block_id"`
66
Height string `json:"height"`
77
AccountEvents AccountEvents `json:"account_events"`
88
MessageIndex uint64 `json:"message_index"`

engine/access/rest/websockets/models/subscription_entry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package models
22

33
// SubscriptionEntry represents an active subscription entry.
44
type SubscriptionEntry struct {
5+
SubscriptionID string `json:"subscription_id"` // ID is a client generated UUID for subscription
56
Topic string `json:"topic"` // Topic of the subscription
6-
SubscriptionID string `json:"id"` // Unique subscription ID
7-
Arguments Arguments `json:"arguments"` // Arguments of the subscription
7+
Arguments Arguments `json:"arguments"`
88
}

0 commit comments

Comments
 (0)