[server] Use 'const &' for performance.