File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -154,17 +154,19 @@ blackhole:
154154 . expect( "Failed to convert to to valid URI" ) ,
155155 method: generator:: http:: Method :: Post {
156156 variant: lading_payload:: Config :: Fluent ,
157- maximum_prebuild_cache_size_bytes: byte_unit:: Byte :: from_unit(
158- 8_f64 ,
159- byte_unit:: ByteUnit :: MB
160- ) ?,
157+ maximum_prebuild_cache_size_bytes: byte_unit:: Byte :: from_u64_with_unit(
158+ 8 ,
159+ byte_unit:: Unit :: MB
160+ )
161+ . expect( "valid bytes" ) ,
161162 block_cache_method: block:: CacheMethod :: Fixed ,
162163 } ,
163164 headers: HeaderMap :: default ( ) ,
164- bytes_per_second: byte_unit:: Byte :: from_unit(
165- 100_f64 ,
166- byte_unit:: ByteUnit :: MB
167- ) ?,
165+ bytes_per_second: byte_unit:: Byte :: from_u64_with_unit(
166+ 100 ,
167+ byte_unit:: Unit :: MB
168+ )
169+ . expect( "valid bytes" ) ,
168170 maximum_block_size: lading_payload:: block:: default_maximum_block_size( ) ,
169171 parallel_connections: 5 ,
170172 throttle: lading_throttle:: Config :: default ( ) ,
You can’t perform that action at this time.
0 commit comments