Skip to content
Snippets Groups Projects
Commit a06ff88d authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

fix: remove unique index on peer_address

The `peer_address` parameter is an inbound address used for
communication with the peer. It shouldn't be confused with the listen
address. The persisted `peer_address` may become obsolete due to
circumstances beyond picodata control (e.g. DNS or IP changes). Thus
there's no point in its prior validation, including the uniqueness
check.

There's also no such task as getting peer by peer_address.

To sum up, an index over `peer_address` is useless. It only creates
problems and causes panics.

Close https://git.picodata.io/picodata/picodata/picodata/-/issues/88
parent 08f68542
No related branches found
No related tags found
Loading
Pipeline #5408 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment