You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A note, I think protocolHandlerParams/protocolClientParams are relics of when grpc was a separate package, is this right (was it)? I think they likely still make sense given the number of fields though.
Also a note, I don't think assert.params actually buys us what we want - might want to limit it to the options and just pass the parameters in directly (in every function, we call newParams anyways). Super minor nit though.
The text was updated successfully, but these errors were encountered:
A note, I think protocolHandlerParams/protocolClientParams are relics of when grpc was a separate package, is this right (was it)? I think they likely still make sense given the number of fields though.
No, it's just a lot of stuff to pass without names. Functional options for unexported APIs also seemed over-engineered.
Also a note, I don't think assert.params actually buys us what we want - might want to limit it to the options and just pass the parameters in directly (in every function, we call newParams anyways). Super minor nit though.
Good point, will open a PR to fix. I think we can probably clean up assert quite a bit - it originally supported a much larger set of features, most of which we're not using anymore.
I think the purpose of all of these is (relatively) similar:
I'd argue for
params
.A note, I think
protocolHandlerParams/protocolClientParams
are relics of when grpc was a separate package, is this right (was it)? I think they likely still make sense given the number of fields though.Also a note, I don't think
assert.params
actually buys us what we want - might want to limit it to theoptions
and just pass the parameters in directly (in every function, we callnewParams
anyways). Super minor nit though.The text was updated successfully, but these errors were encountered: