Skip to content

Commit

Permalink
use ipv6
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Masurel <paul@quickwit.io>
  • Loading branch information
PSeitz and fulmicoton committed Oct 7, 2022
1 parent 48d9da6 commit a843ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fastfield/readers.rs
Expand Up @@ -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)?)
Expand Down
2 changes: 1 addition & 1 deletion src/schema/document.rs
Expand Up @@ -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);
}

Expand Down

0 comments on commit a843ffc

Please sign in to comment.