etcd: implement batch operations

- cache the operations internally in a list
- Write() applies the list to etcd
This commit is contained in:
André Roth committed 2024-07-31 22:16:00 +02:00
1 parent 9768ecef22
commit 7a01c9c62d
2 files changed
+24 -5

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ func (s *EtcDStorage) CreateBatch() database.Batch {
return nil
}
return &EtcDBatch{
db: s.db,
s: s,
}
}