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

Use js-ipfs@0.27.0 #111

Merged
merged 1 commit into from
Dec 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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