aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files/batch_queue.go
blob: afec5a781ca2407647afb076d9e58dff9554a3a1 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package files

func (batch *Batch) queue(op queuedUpdate) error {
	err := (&refUpdateExecutor{store: batch.store}).validateQueuedUpdate(op)
	if err != nil {
		return err
	}

	batch.ops = append(batch.ops, op)

	return nil
}