Skip to content

Commit 3224315

Browse files
authored
fix describe proxy impl (#1597)
1 parent 6e12c36 commit 3224315

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

libsql-server/src/rpc/proxy.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -682,21 +682,9 @@ impl Proxy for ProxyService {
682682

683683
// FIXME: copypasta from execute(), creatively extract to a helper function
684684
let lock = self.clients.upgradable_read().await;
685-
let (connection_maker, _new_frame_notifier) = self
685+
let connection_maker = self
686686
.namespaces
687-
.with(ctx.namespace().clone(), |ns| {
688-
let connection_maker = ns.db.connection_maker();
689-
let notifier = ns
690-
.db
691-
.as_primary()
692-
.unwrap()
693-
.wal_wrapper
694-
.wrapper()
695-
.logger()
696-
.new_frame_notifier
697-
.subscribe();
698-
(connection_maker, notifier)
699-
})
687+
.with(ctx.namespace().clone(), |ns| ns.db.connection_maker())
700688
.await
701689
.map_err(|e| {
702690
if let crate::error::Error::NamespaceDoesntExist(_) = e {

0 commit comments

Comments
 (0)