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]
    @EmiM: they could have diff versions in their devDependencies unintentionally
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    hello my logstores are not persisting?
    do i need a replicator?
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    it does not be saving to the node, actually
    anders
    @tabcat00:matrix.org
    [m]
    Seven Zant (Disco Time): use await db.load() after opening the store
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    seems to hang when i do
    for hours
    anders
    @tabcat00:matrix.org
    [m]
    its likely the entries cant be loaded for some reason
    what ipfs node are you using
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    local one, created from ipfs http api
    ipfs daemon --etc
    anders
    @tabcat00:matrix.org
    [m]
    have you purged the repo at all
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    not that im aware of, and gc is off by default right?
    anders
    @tabcat00:matrix.org
    [m]
    i think its on by default in go-ipfs but i dont think that would be the issue
    i dont think gc is that proactive
    have you tried making another log adding entries, then closing and opening/loading again
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i
    ll try
    anders
    @tabcat00:matrix.org
    [m]
    also the versions of orbitdb, ipfs-http-client and ipfs you are using might help
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    all should be latest release
    anders
    @tabcat00:matrix.org
    [m]
    great
    any luck?
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i think im getting write events
    do i need to sync with that event?
    was i supposed to do something on the ready event?
    anders
    @tabcat00:matrix.org
    [m]
    ready event?
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    because i see no other events logged after .on ready
    anders
    @tabcat00:matrix.org
    [m]
    is that an ipfs event?
    oh sorry i see it now in api
    that should fire after loading the database
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    oh im misinterpreting load then
    "write" indicates it's local?
    anders
    @tabcat00:matrix.org
    [m]
    load will load persisted entries by traversing the persisted head hashes
    its important not to write anything before calling .load
    yes a write event fires only when an entry is created and added to the log locally
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    do i need to manually sync to the peers/disk?
    anders
    @tabcat00:matrix.org
    [m]
    no
    as long as the ipfs config can pubsub peer with other nodes replication is automatic
    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