etcd: implement batch operations

- cache the operations internally in a list
- Write() applies the list to etcd
This commit is contained in:
André Roth
2024-07-25 11:59:38 +02:00
parent 9768ecef22
commit 7a01c9c62d
2 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ func (s *EtcDStorage) CreateBatch() database.Batch {
return nil
}
return &EtcDBatch{
db: s.db,
s: s,
}
}