Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    anders
    @tabcat00:matrix.org
    [m]
    is everything working as expected now?
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    doesnt seem like it
    back where im started, waiting on load
    anders
    @tabcat00:matrix.org
    [m]
    is this a new log?
    or the one that was hanging before
    also do you have the repo available i could take a look at
    brb
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    uh lemme add a remote then
    wait i should ask is go-orbit-db close enough to the js library to just rewrite the syntax and keep the calls the same?
    because ive been using the js repo as basis for writing the go program lol
    anders
    @tabcat00:matrix.org
    [m]
    go for it :p tell us how it goes
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    cli tools in node just dont feel right lol
    anders
    @tabcat00:matrix.org
    [m]
    yea if you can write everything in go try the go-orbitdb version for sure
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    so i can see the write and close events
    but its not there after trying to open the store again
    even with same address
    anders
    @tabcat00:matrix.org
    [m]
    and you called .load before writing everytime you open
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    yes
    anders
    @tabcat00:matrix.org
    [m]
    does it hang
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    dont think so
    anders
    @tabcat00:matrix.org
    [m]
    are the entries loaded then
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    no, calling .list returns empty
    anders
    @tabcat00:matrix.org
    [m]
    db.iterator({ limit: -1 })
      .collect()
      .map((e) => e.payload.value)
    idk what list is but this will return all the entries in the log
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i think i just had it get the size, but it didnt have anything
    anders
    @tabcat00:matrix.org
    [m]
    do you want to send the code snippet
    there are also a lot of test examples that might be able to help as references
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    do i need to set access control when not creating?
    or could that cause issues
    anders
    @tabcat00:matrix.org
    [m]
    i would use just .determineAddress and .open methods, which separates those parts nicely
    you might be overwriting the db using create
    we are in the process of revamping the api to make it easier to use
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    db.address.toString() is it different from .determineAddress?
    i have the full path from the former
    anders
    @tabcat00:matrix.org
    [m]
    determineAddress will basically create a manifest and return the address of the manifest
    you can use the address in the .open method to get the db/store
    the access control options are in determineAddress and not in .open because they are part of the manifest which is immutable
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i see
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    okay, adding a lot of entries causes write events publishing on pubsub
    but still not persisting
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    how long should it take to open the store usually
    if i havent opened it before
    and it resides on another node
    anders
    @tabcat00:matrix.org
    [m]
    the manifest is persisted in ipfs, other nodes need it to open the database. if another node cant resolve it then the nodes arent able to communicate for whatever reason
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    oh do i need ipns pubsub
    anders
    @tabcat00:matrix.org
    [m]
    if it can find it after a while thats pretty normal but can be sped up by connecting the nodes so the content is found faster
    ipns wont help here i think
    we need pubsub and ipfs/ipld which are a bit different
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    setting logger to log just log the cache stuff is not super helpful haha
    just tells me its trying
    anders
    @tabcat00:matrix.org
    [m]
    if you want to try you can downgrade orbitdb to 0.27 but i dont think this will help