decred / dcrpool

decred mining pool
ISC License
29 stars 27 forks source link

multi: No string pointer on submit work. #365

Closed davecgh closed 1 year ago

davecgh commented 1 year ago

This modifies the SubmitWork function to take the submission directly instead of a pointer to it.

Strings are already reference types, so there is no reason to take a pointer to a string unless the calee intended to change what the caller's string points at. Moreover, taking a pointer could also lead to unnecessary allocations.