minor: missing variable assignment in CheckSnapshot, struct-tag

This commit is contained in:
2023-10-04 11:40:33 -05:00
parent de2a5c5fd9
commit e5a72ddf4f
2 changed files with 3 additions and 3 deletions

View File

@@ -85,8 +85,8 @@ type Config struct {
FileKey []byte `json:"-"`
// for erasure coding
DataShards int `json:'data-shards'`
ParityShards int `json:'parity-shards'`
DataShards int `json:"data-shards"`
ParityShards int `json:"parity-shards"`
// for RSA encryption
rsaPrivateKey *rsa.PrivateKey

View File

@@ -2568,7 +2568,7 @@ func (manager *SnapshotManager) CheckSnapshot(snapshot *Snapshot) (err error) {
}
if entry.EndChunk < entry.StartChunk {
fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d",
err = fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d",
entry.Path, entry.StartChunk, entry.EndChunk)
return false
}