Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #111 from orbitdb/feat/ipfs-0.27.0
Browse files Browse the repository at this point in the history
Use js-ipfs@0.27.0
  • Loading branch information
haadcode authored Dec 9, 2017
2 parents 7de50a0 + 3543c7a commit 9122183
Show file tree
Hide file tree
Showing 7 changed files with 1,699 additions and 1,964 deletions.
2 changes: 1 addition & 1 deletion benchmarks/browser/benchmark-append.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>Results</h2>

let run = (() => {
ipfs = new Ipfs({
repo: './ipfs-log/examples/browser/benchmark-append/new',
repo: './ipfs-log/examples/browser/benchmark-append/0.27.0',
start: false,
EXPERIMENTAL: {
pubsub: false,
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/browser/benchmark-join.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2>Results</h2>

let run = (() => {
ipfs = new Ipfs({
repo: './ipfs-log/examples/browser/benchmark-join/new',
repo: './ipfs-log/examples/browser/benchmark-join/new/0.27.0',
start: false,
EXPERIMENTAL: {
pubsub: false,
Expand Down
8 changes: 1 addition & 7 deletions dist/ipfslog.min.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions lib/es5/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ var Log = function (_GSet) {
}, {
key: 'has',
value: function has(entry) {
var isEqual = function isEqual(e) {
return Entry.isEqual(e, entry);
};
return this.values.find(isEqual) !== undefined;
return this._entryIndex[entry.hash || entry] !== undefined;
}

/**
Expand Down
Loading

0 comments on commit 9122183

Please sign in to comment.