Skip to content

Commit

Permalink
fix: epoch processing status update data model in htable entry
Browse files Browse the repository at this point in the history
  • Loading branch information
anomit committed Aug 16, 2023
1 parent d51b74a commit 406fdba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 1 addition & 7 deletions go/caching/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ func (r *RedisCache) UpdateEpochProcessingStatus(ctx context.Context, projectID
Error: err,
Timestamp: time.Now().Unix(),
}
state_update := datamodel.SnapshotterEpochProcessingReportItem{
EpochID: epochId,
TransitionStatus: map[string]interface{}{
projectID: transition_status_item,
},
}
state_update_bytes, err2 := json.Marshal(state_update)
state_update_bytes, err2 := json.Marshal(transition_status_item)

if err2 != nil {
log.WithError(err2).Error("failed to marshal state update message on relayer submission")
Expand Down
5 changes: 0 additions & 5 deletions go/goutils/datamodel/data_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ type SnapshotterStateUpdate struct {

const RELAYER_SEND_STATE_ID string = "RELAYER_SEND"

type SnapshotterEpochProcessingReportItem struct {
EpochID int `json:"epochId"`
TransitionStatus map[string]interface{} `json:"transitionStatus"`
}

type SummaryProjectVerificationStatus struct {
ProjectId string `json:"projectId"`
ProjectHeight string `json:"chainHeight"`
Expand Down

0 comments on commit 406fdba

Please sign in to comment.