some updates

This commit is contained in:
Akinwale Ariwodola 2018-03-11 07:38:44 +01:00
parent 59638014ef
commit 7dc7107f94
2 changed files with 4 additions and 4 deletions

View file

@ -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',

View file

@ -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]),
});
};