mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-05 05:36:39 +00:00
Cleanup
This commit is contained in:
parent
1b7bacd4bc
commit
73e18171e1
@ -9,7 +9,6 @@ const OrbitNode = require('./OrbitNode');
|
||||
const MaxBatchSize = 10; // How many items per sequence. Saves a snapshot to ipfs in batches of this many items.
|
||||
const MaxHistory = 256; // How many items to fetch in the chain per join
|
||||
|
||||
// class IPFSLWWSet extends LWWSet {
|
||||
class OrbitList {
|
||||
constructor(ipfs, id, seq, ver, items) {
|
||||
this.id = id;
|
||||
|
@ -40,7 +40,7 @@ class Posts {
|
||||
if(post.type) delete post.type;
|
||||
const res = await(ipfs.object.put(new Buffer(JSON.stringify({ Data: JSON.stringify(post) })), "json"));
|
||||
resolve({ Post: post, Hash: res.Hash });
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
static get Types() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user