Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <[email protected]>
  • Loading branch information
joshua-kim committed Dec 2, 2024
1 parent 0ce21c2 commit ed48faf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions statesync/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ type SyncableBlock[T StateSummaryBlock] struct {
accepter Accepter[T] // accepter is nil if the SyncableBlock is constructed by the server
}

func NewSyncableBlock[T StateSummaryBlock](container T, accepter Accepter[T]) *SyncableBlock {
return &SyncableBlock{
func NewSyncableBlock[T StateSummaryBlock](container T, accepter Accepter[T]) *SyncableBlock[T] {
return &SyncableBlock[T]{
container: container,
accepter: accepter,
}
}

func (sb *SyncableBlock) ID() ids.ID {
func (sb *SyncableBlock[T]) ID() ids.ID {
return sb.container.ID()
}

func (sb *SyncableBlock) Height() uint64 {
func (sb *SyncableBlock[T]) Height() uint64 {
return sb.container.Height()
}

func (sb *SyncableBlock) Bytes() []byte {
func (sb *SyncableBlock[T]) Bytes() []byte {
return sb.container.Bytes()
}

func (sb *SyncableBlock) Accept(ctx context.Context) (block.StateSyncMode, error) {
func (sb *SyncableBlock[T]) Accept(ctx context.Context) (block.StateSyncMode, error) {
return sb.accepter.Accept(ctx, sb.container)
}

func (sb *SyncableBlock) MarkAccepted(ctx context.Context) {
func (sb *SyncableBlock[T]) MarkAccepted(ctx context.Context) {
sb.container.MarkAccepted(ctx)
}

func (sb *SyncableBlock) String() string {
func (sb *SyncableBlock[T]) String() string {
return sb.container.String()
}

0 comments on commit ed48faf

Please sign in to comment.