Skip to content

Conversation

@YaoPersonal
Copy link

We do not need defaultClient as a global state in class ParseRequest anymore.

We do not need defaultClient as a global state in class ParseRequest anymore.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This defeats the purpose of injection as it makes it difficult to unit test execution paths that use this method.

In reality, we should be passing the client through to anything that was using ParseRequest#executeAsync() and ParseRequest#executeAsync(ProgressCallback, ProgressCallback, CancellationToken).

@grantland grantland self-assigned this Oct 7, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: let's grab restClient once and reuse the same variable

@grantland
Copy link
Contributor

Could you also see if this resolves #37?

@grantland
Copy link
Contributor

LGTM, mind squashing?

@grantland
Copy link
Contributor

Squashed in #214

@grantland grantland closed this Oct 22, 2015
@facebook-github-bot
Copy link

@YaoPersonal updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants