diff --git a/pkg/p2p/libp2p/stream_test.go b/pkg/p2p/libp2p/stream_test.go index 467d239b172..9aab9c1f3a3 100644 --- a/pkg/p2p/libp2p/stream_test.go +++ b/pkg/p2p/libp2p/stream_test.go @@ -79,6 +79,7 @@ func TestStreamVersion(t *testing.T) { if v == nil { t.Fatal("expected version to be non-nil") + return } expected := semver.Version{Major: tc.wantMajor, Minor: tc.wantMinor} diff --git a/pkg/postage/batch.go b/pkg/postage/batch.go index c252fcd9dc5..2438d167808 100644 --- a/pkg/postage/batch.go +++ b/pkg/postage/batch.go @@ -17,7 +17,7 @@ type Batch struct { Owner []byte // owner's ethereum address Depth uint8 // batch depth, i.e., size = 2^{depth} BucketDepth uint8 // the depth of neighbourhoods t - Immutable bool // if the batch allows adding new capacity (dilution) + Immutable bool // if true, chunks cannot be overwritten when buckets are full } // MarshalBinary implements BinaryMarshaller. It will attempt to serialize the