Commit f1a1bb9d authored by Kirill Smelkov's avatar Kirill Smelkov

fixup! client.go: Fix URI client option parsing for supported + unsupported options

readonly is handled by common zodb.OpenDriver.
parent d6c33660
......@@ -26,7 +26,6 @@ import (
"math/rand"
"net/url"
"os"
"strconv"
"strings"
"sync"
......@@ -539,17 +538,6 @@ func parseURL(ctx context.Context, u *url.URL) (urlinfo *urlInfo, err error) {
return nil, err
}
// mv readonly from URL => driver opts
readOnly, ok := q["read-only"]
if ok {
delete(q, "read-only")
r, err := strconv.ParseBool(readOnly)
if err != nil {
return nil, err
}
opt.ReadOnly = r
}
// pop not yet used client options
// (our neo client doesn't apply their effect yet)
for _, k := range []string {"compress", "cache-size", "logfile"} {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment