I need two global OkHttp instances in my app. I'm ...
# dagger
c
I need two global OkHttp instances in my app. I'm a dagger noob, but I inherited a project that already has the single okhttp instance, but encountering problems when I try to add a second one. What's the defacto way to have two objects of the same type in the same scope?
n
A custom
@Qualifier
or
@Named
should solve this.
c
@Nicholas Doglio is any one of them typically preferred over the other?
n
I don't think so, both are perfectly acceptable options.
c
Thanks @Nicholas Doglio