Common components refactor #1
2 changed files with 4 additions and 4 deletions
|
@ -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',
|
||||||
|
|
|
@ -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]),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue