Replies: 2 comments 3 replies
-
After reading the source code I'm a bit confused. The package seems to use the node ID of last modified HLC as the client's node ID. Is that right? I thought each client would have its own unique identifier? |
Beta Was this translation helpful? Give feedback.
-
I used to have this option in the past but ran against problems while using it myself enough times that I decided it would be best to not allow that as having duplicate node ids in a network will break the CRDT in sometimes subtle ways. Can you give a bit more details on what you want to accomplish with this? I'm wondering if there's another way to do the same, or if your use case justifies allowing for that option. |
Beta Was this translation helpful? Give feedback.
-
I want to have access to the device-specific node id before the database is created, which is not possible as the node id is generated on db init. Therefore I think a solution could be generating the node id myself (with your
generateNodeId()
function) and passing that to the constructor/init function.Beta Was this translation helpful? Give feedback.
All reactions