Skip to content

Commit

Permalink
blockservice: add compiletime guard for BoundedBlockService on the bl…
Browse files Browse the repository at this point in the history
…ockservice struct
  • Loading branch information
Jorropo committed Jan 15, 2024
1 parent ff4f785 commit 4d08813
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blockservice/blockservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ type BoundedBlockService interface {
Allowlist() verifcid.Allowlist
}

var _ BoundedBlockService = (*blockService)(nil)

type blockService struct {
allowlist verifcid.Allowlist
blockstore blockstore.Blockstore
Expand Down

0 comments on commit 4d08813

Please sign in to comment.