refactor: Set RecordSize of PipeConfig instead of passing it as a parameter

This commit is contained in:
Felicitas Pojtinger
2022-01-09 03:12:44 +01:00
parent f1f338734b
commit ccf02168d4
12 changed files with 36 additions and 46 deletions

View File

@@ -274,7 +274,6 @@ func (o *Operations) Archive(
o.pipes,
o.crypto,
o.pipes.RecordSize,
int(lastIndexedRecord),
int(lastIndexedBlock),
overwrite,

View File

@@ -122,7 +122,6 @@ func (o *Operations) Delete(name string) error {
o.pipes,
o.crypto,
o.pipes.RecordSize,
int(lastIndexedRecord),
int(lastIndexedBlock),
false,

View File

@@ -141,7 +141,6 @@ func (o *Operations) Move(from string, to string) error {
o.pipes,
o.crypto,
o.pipes.RecordSize,
int(lastIndexedRecord),
int(lastIndexedBlock),
false,

View File

@@ -97,7 +97,6 @@ func (o *Operations) Restore(
getDst,
mkdirAll,
o.pipes.RecordSize,
int(dbhdr.Record),
int(dbhdr.Block),
dst,

View File

@@ -302,7 +302,6 @@ func (o *Operations) Update(
o.pipes,
o.crypto,
o.pipes.RecordSize,
int(lastIndexedRecord),
int(lastIndexedBlock),
false,