Common components refactor #1
2 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ Lbry.connect = () => {
|
|||
apiCall('status', {}, resolve, reject);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// Check every half second to see if the daemon is accepting connections
|
||||
checkDaemonStarted(resolve, () => {
|
||||
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,
|
||||
* these are designed to be transparent wrappers around the corresponding API methods.
|
||||
*/
|
||||
Lbry.status = () =>
|
||||
Lbry.status = () =>
|
||||
new Promise((resolve, reject) => {
|
||||
apiCall(
|
||||
'status',
|
||||
|
|
|
@ -36,12 +36,12 @@ reducers[ACTIONS.RESOLVE_URIS_COMPLETED] = (state, action) => {
|
|||
byUri[uri] = null;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return Object.assign({}, state, {
|
||||
byId,
|
||||
claimsByUri: byUri,
|
||||
channelClaimCounts,
|
||||
resolvingUris: (state.resolvingUris || []).filter(uri => !resolveInfo[uri])
|
||||
resolvingUris: (state.resolvingUris || []).filter(uri => !resolveInfo[uri]),
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue