mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +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:
@@ -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