Skip to content

Commit a843ffc

Browse files
PSeitzfulmicoton
andauthored
use ipv6
Co-authored-by: Paul Masurel <[email protected]>
1 parent 48d9da6 commit a843ffc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fastfield/readers.rs

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

src/schema/document.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Document {
9999
}
100100

101101
/// Add a IP address field
102-
pub fn add_ip_addr(&mut self, field: Field, value: IpAddr) {
102+
pub fn add_ip_addr(&mut self, field: Field, value: IpAddrV6) {
103103
self.add_field_value(field, value);
104104
}
105105

0 commit comments

Comments
 (0)