• Levin Zimmermann's avatar
    client.go: Fix URI client option parsing for supported + unsupported options · 59d136b7
    Levin Zimmermann authored
    Before this patch, the parser ignored options which were already supported
    by the client (for instance 'read-only') and even raised an error. But the
    client can already use this option: as a9246333 describes this should happen in the
    local storage URL parser.
    
    Furthermore not-yet-supported client options (for instance compress) broke
    the NEO client before this patch. Now these options only raise a warning which
    informs the user that they are ignored. Why? We want to use pre-complete NEO
    in real-world projects together with NEO/py clusters. Those real-world projects
    may already specify options which aren't supported by our NEO/go client yet.
    But it doesn't matters so much, because those options are mostly
    relevant for other NEO/py cluster clients (e.g. zope nodes). Instead of
    filtering those parameters before parsing them to NEO/go in a higher
    level (e.g. SlapOS), NEO/go should already support any valid NEO URL
    and raise warnings for not yet implemented features.
    59d136b7
client.go 16 KB