rabbit_net: Ignore Dialyzer warnings in socket_ends() and unwrap_socket()
Those functions are currently looking into opaque types from `ranch_proxy_protocol`. Until this is fixed, we just ignore the warnings and comment out the specs. [#153850881]
This commit is contained in:
		
							parent
							
								
									a323a8a94c
								
							
						
					
					
						commit
						7be4181672
					
				|  | @ -40,7 +40,7 @@ | ||||||
|                  {raw, non_neg_integer(), non_neg_integer(), binary()}]. |                  {raw, non_neg_integer(), non_neg_integer(), binary()}]. | ||||||
| -type hostname() :: inet:hostname(). | -type hostname() :: inet:hostname(). | ||||||
| -type ip_port() :: inet:port_number(). | -type ip_port() :: inet:port_number(). | ||||||
| -type host_or_ip() :: binary() | inet:ip_address(). | % -type host_or_ip() :: binary() | inet:ip_address(). | ||||||
| -spec is_ssl(socket()) -> boolean(). | -spec is_ssl(socket()) -> boolean(). | ||||||
| -spec ssl_info(socket()) -> 'nossl' | ok_val_or_error([{atom(), any()}]). | -spec ssl_info(socket()) -> 'nossl' | ok_val_or_error([{atom(), any()}]). | ||||||
| -spec controlling_process(socket(), pid()) -> ok_or_any_error(). | -spec controlling_process(socket(), pid()) -> ok_or_any_error(). | ||||||
|  | @ -75,11 +75,14 @@ | ||||||
|           'nossl' | ok_val_or_error(rabbit_ssl:certificate()). |           'nossl' | ok_val_or_error(rabbit_ssl:certificate()). | ||||||
| -spec connection_string(socket(), 'inbound' | 'outbound') -> | -spec connection_string(socket(), 'inbound' | 'outbound') -> | ||||||
|           ok_val_or_error(string()). |           ok_val_or_error(string()). | ||||||
| -spec socket_ends(socket(), 'inbound' | 'outbound') -> | % -spec socket_ends(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket(), | ||||||
|           ok_val_or_error({host_or_ip(), ip_port(), | %                   'inbound' | 'outbound') -> | ||||||
|                            host_or_ip(), ip_port()}). | %           ok_val_or_error({host_or_ip(), ip_port(), | ||||||
|  | %                            host_or_ip(), ip_port()}). | ||||||
| -spec is_loopback(socket() | inet:ip_address()) -> boolean(). | -spec is_loopback(socket() | inet:ip_address()) -> boolean(). | ||||||
| -spec unwrap_socket(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket()) -> socket(). | % -spec unwrap_socket(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket()) -> socket(). | ||||||
|  | 
 | ||||||
|  | -dialyzer({nowarn_function, [socket_ends/2, unwrap_socket/1]}). | ||||||
| 
 | 
 | ||||||
| %%--------------------------------------------------------------------------- | %%--------------------------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue