@@ -24,7 +24,7 @@ type blockPutStateMemory struct {
2424 lastBlock BlockPointer
2525}
2626
27- var _ blockPutState = (* blockPutStateMemory )(nil )
27+ var _ blockPutStateCopiable = (* blockPutStateMemory )(nil )
2828
2929func newBlockPutStateMemory (length int ) * blockPutStateMemory {
3030 bps := & blockPutStateMemory {}
@@ -72,7 +72,7 @@ func (bps *blockPutStateMemory) oldPtr(
7272}
7373
7474func (bps * blockPutStateMemory ) mergeOtherBps (
75- _ context.Context , other blockPutState ) error {
75+ _ context.Context , other blockPutStateCopiable ) error {
7676 otherMem , ok := other .(* blockPutStateMemory )
7777 if ! ok {
7878 return errors .Errorf ("Cannot remove other bps of type %T" , other )
@@ -85,7 +85,7 @@ func (bps *blockPutStateMemory) mergeOtherBps(
8585}
8686
8787func (bps * blockPutStateMemory ) removeOtherBps (
88- ctx context.Context , other blockPutState ) error {
88+ ctx context.Context , other blockPutStateCopiable ) error {
8989 otherMem , ok := other .(* blockPutStateMemory )
9090 if ! ok {
9191 return errors .Errorf ("Cannot remove other bps of type %T" , other )
@@ -154,7 +154,7 @@ func (bps *blockPutStateMemory) numBlocks() int {
154154}
155155
156156func (bps * blockPutStateMemory ) deepCopy (
157- _ context.Context ) (blockPutState , error ) {
157+ _ context.Context ) (blockPutStateCopiable , error ) {
158158 newBps := & blockPutStateMemory {}
159159 newBps .blockStates = make (map [BlockPointer ]blockState , len (bps .blockStates ))
160160 for ptr , bs := range bps .blockStates {
@@ -164,7 +164,8 @@ func (bps *blockPutStateMemory) deepCopy(
164164}
165165
166166func (bps * blockPutStateMemory ) deepCopyWithBlacklist (
167- _ context.Context , blacklist map [BlockPointer ]bool ) (blockPutState , error ) {
167+ _ context.Context , blacklist map [BlockPointer ]bool ) (
168+ blockPutStateCopiable , error ) {
168169 newBps := & blockPutStateMemory {}
169170 newLen := len (bps .blockStates ) - len (blacklist )
170171 if newLen < 0 {
0 commit comments