Co-authored-by: Paul Masurel <paul@quickwit.io>
This commit is contained in:
PSeitz
2022-10-07 10:54:32 +02:00
committed by Pascal Seitz
parent f465173872
commit 534b1d33c3
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ impl FastFieldReaders {
/// Returns the `ip` fast field reader reader associated to `field`.
///
/// If `field` is not a u128 fast field, this method returns an Error.
pub fn ip_addr(&self, field: Field) -> crate::Result<Arc<dyn Column<IpAddr>>> {
pub fn ip_addr(&self, field: Field) -> crate::Result<Arc<dyn Column<Ipv6Addr>>> {
self.check_type(field, FastType::U128, Cardinality::SingleValue)?;
let bytes = self.fast_field_data(field, 0)?.read_bytes()?;
Ok(open_u128::<IpAddr>(bytes)?)

View File

@@ -99,7 +99,7 @@ impl Document {
}
/// Add a IP address field
pub fn add_ip_addr(&mut self, field: Field, value: IpAddr) {
pub fn add_ip_addr(&mut self, field: Field, value: IpAddrV6) {
self.add_field_value(field, value);
}