Skip to content

Error correction (Thread 'main' panicked ... postgres)#412

Open
solaryssky wants to merge 14 commits intoroapi:mainfrom
solaryssky:main
Open

Error correction (Thread 'main' panicked ... postgres)#412
solaryssky wants to merge 14 commits intoroapi:mainfrom
solaryssky:main

Conversation

@solaryssky
Copy link

Error correction #389
The Can't start a runtime from within a runtime occurs because inside the already running Tokio runtime (your #[tokio::main]), the connectorx library tries to call the blocking block_on via the synchronous Postgres driver (postgres crate) (creates/uses a single-threaded runtime). This is a conflict: a blocking call inside the tokyo workflow.

let theme = egui_extras::syntax_highlighting::CodeTheme::from_memory(ctx, ui.style());

let mut layouter = |ui: &egui::Ui, string: &str, wrap_width: f32| {
// ИЗМЕНЕНО: второй аргумент closure теперь &dyn egui::TextBuffer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these comments don't seem to related to the change

@houqp
Copy link
Member

houqp commented Dec 8, 2025

thanks for the fix @solaryssky , could you also fix the CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants