refactor: Set RecordSize of PipeConfig instead of passing it as a parameter
This commit is contained in:
@@ -274,7 +274,6 @@ func (o *Operations) Archive(
|
||||
o.pipes,
|
||||
o.crypto,
|
||||
|
||||
o.pipes.RecordSize,
|
||||
int(lastIndexedRecord),
|
||||
int(lastIndexedBlock),
|
||||
overwrite,
|
||||
|
||||
@@ -122,7 +122,6 @@ func (o *Operations) Delete(name string) error {
|
||||
o.pipes,
|
||||
o.crypto,
|
||||
|
||||
o.pipes.RecordSize,
|
||||
int(lastIndexedRecord),
|
||||
int(lastIndexedBlock),
|
||||
false,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -97,7 +97,6 @@ func (o *Operations) Restore(
|
||||
getDst,
|
||||
mkdirAll,
|
||||
|
||||
o.pipes.RecordSize,
|
||||
int(dbhdr.Record),
|
||||
int(dbhdr.Block),
|
||||
dst,
|
||||
|
||||
@@ -302,7 +302,6 @@ func (o *Operations) Update(
|
||||
o.pipes,
|
||||
o.crypto,
|
||||
|
||||
o.pipes.RecordSize,
|
||||
int(lastIndexedRecord),
|
||||
int(lastIndexedBlock),
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user