mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-14 14:47:19 +00:00
etcd: implement temporary db support
- temporary db support is implemented with a unique key prefix - prevent closing etcd connection when closing temporary db
This commit is contained in:
1 parent
640c202ee5
commit
9768ecef22
2 files changed
+48
-6
No files matched your search
@@ -32,7 +32,7 @@ func NewDB(url string) (database.Storage, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &EtcDStorage{url, cli}, nil
|
||||
return &EtcDStorage{url, cli, ""}, nil
|
||||
}
|
||||
|
||||
func NewOpenDB(url string) (database.Storage, error) {
|
||||
|
||||
Reference in new issue
Block a user