File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
libsql-server/src/namespace/configurator Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ impl ConfigureNamespace for LibsqlPrimaryConfigurator {
269
269
_from_config : MetaStoreHandle ,
270
270
_to_ns : NamespaceName ,
271
271
_to_config : MetaStoreHandle ,
272
- _timestamp : Option < chrono:: prelude:: NaiveDateTime > ,
272
+ timestamp : Option < chrono:: prelude:: NaiveDateTime > ,
273
273
_store : NamespaceStore ,
274
274
) -> Pin < Box < dyn Future < Output = crate :: Result < Namespace > > + Send + ' a > > {
275
275
Box :: pin ( async move {
@@ -283,7 +283,9 @@ impl ConfigureNamespace for LibsqlPrimaryConfigurator {
283
283
. find_segment (
284
284
& s. backend ( ) . default_config ( ) ,
285
285
& ns,
286
- libsql_wal:: storage:: backend:: FindSegmentReq :: Timestamp ( ts) ,
286
+ libsql_wal:: storage:: backend:: FindSegmentReq :: Timestamp (
287
+ ts. and_utc ( ) ,
288
+ ) ,
287
289
)
288
290
. await
289
291
. unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use std::pin::Pin;
2
2
use std:: sync:: atomic:: AtomicBool ;
3
3
use std:: sync:: Arc ;
4
4
5
- use chrono:: { DateTime , Utc } ;
6
5
use futures:: Future ;
7
6
use hyper:: Uri ;
8
7
use libsql_replication:: rpc:: replication:: log_offset:: WalFlavor ;
@@ -256,7 +255,7 @@ impl ConfigureNamespace for ReplicaConfigurator {
256
255
_from_config : MetaStoreHandle ,
257
256
_to_ns : NamespaceName ,
258
257
_to_config : MetaStoreHandle ,
259
- _timestamp : Option < DateTime < Utc > > ,
258
+ _timestamp : Option < chrono :: NaiveDateTime > ,
260
259
_store : NamespaceStore ,
261
260
) -> Pin < Box < dyn Future < Output = crate :: Result < Namespace > > + Send + ' a > > {
262
261
Box :: pin ( std:: future:: ready ( Err ( crate :: Error :: Fork (
You can’t perform that action at this time.
0 commit comments