// WithCurrentProtocolVersion sets optional current protocol version (defaults to last registered protocol).
WithCurrentProtocolVersion sets optional current protocol version (defaults to last registered protocol).
// WithCurrentProtocolVersion sets optional current protocol version ( defaults to last registered protocol ) .
func WithCurrentProtocolVersion(version string) Option {
	return func(opts *Client) {
		for _, p := range opts.protocols {
			if p.Version() == version {
				opts.current = p
				return
			}
		}
	}
}
func WithCurrentProtocolVersion ( version string ) Option { return func ( opts * Client ) { for _ , p := range opts . protocols { if p . Version ( ) == version { opts . current = p return } } } }
WithCurrentProtocolVersion sets optional current protocol version (defaults to last registered protocol).
WithCurrentProtocolVersion sets optional current protocol version ( defaults to last registered protocol ) .