Common components refactor #1

Merged
akinwale merged 42 commits from common-components-refactor into master 2018-04-05 04:57:30 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 7dc7107f94 - Show all commits

View file

@ -108,7 +108,7 @@ Lbry.connect = () => {
apiCall('status', {}, resolve, reject); apiCall('status', {}, resolve, reject);
}); });
}; };
// Check every half second to see if the daemon is accepting connections // Check every half second to see if the daemon is accepting connections
checkDaemonStarted(resolve, () => { checkDaemonStarted(resolve, () => {
if (tryNum <= CHECK_DAEMON_STARTED_TRY_NUMBER) { if (tryNum <= CHECK_DAEMON_STARTED_TRY_NUMBER) {
@ -186,7 +186,7 @@ Lbry.getMediaType = (contentType, fileName) => {
* Wrappers for API methods to simulate missing or future behavior. Unlike the old-style stubs, * Wrappers for API methods to simulate missing or future behavior. Unlike the old-style stubs,
* these are designed to be transparent wrappers around the corresponding API methods. * these are designed to be transparent wrappers around the corresponding API methods.
*/ */
Lbry.status = () => Lbry.status = () =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
apiCall( apiCall(
'status', 'status',

View file

@ -36,12 +36,12 @@ reducers[ACTIONS.RESOLVE_URIS_COMPLETED] = (state, action) => {
byUri[uri] = null; byUri[uri] = null;
} }
}); });
return Object.assign({}, state, { return Object.assign({}, state, {
byId, byId,
claimsByUri: byUri, claimsByUri: byUri,
channelClaimCounts, channelClaimCounts,
resolvingUris: (state.resolvingUris || []).filter(uri => !resolveInfo[uri]) resolvingUris: (state.resolvingUris || []).filter(uri => !resolveInfo[uri]),
}); });
}; };