Skip to content

Comments

Simplify string formatting in PostgreSQL auth configuration#97

Merged
swlynch99 merged 2 commits intomainfrom
claude/fix-failing-tests-RkHQ2
Feb 21, 2026
Merged

Simplify string formatting in PostgreSQL auth configuration#97
swlynch99 merged 2 commits intomainfrom
claude/fix-failing-tests-RkHQ2

Conversation

@swlynch99
Copy link
Contributor

Summary

Refactored the string formatting in the PostgreSQL pg_hba.conf configuration setup to use a more idiomatic Rust approach.

Key Changes

  • Changed from format!() macro with a string literal to a raw string literal with .to_string() method call
  • This simplifies the code while maintaining identical functionality and output

Implementation Details

The change replaces the format!("\...") pattern with a raw string literal "\..." followed by .to_string(). Both approaches produce the same result, but the latter is more direct and avoids the overhead of the format!() macro when no interpolation is needed. This is a minor code style improvement that makes the intent clearer—we're simply converting a static string to an owned String rather than formatting one.

https://claude.ai/code/session_017uGnkXcc2zLYNX3sdipDJs

@swlynch99 swlynch99 enabled auto-merge (squash) February 20, 2026 20:59
@swlynch99 swlynch99 disabled auto-merge February 20, 2026 21:03
The test was checking for TaskCompleted scheduler events immediately
after task.wait() returned. There is a small window between when the
worker commits the task's "complete" state to the database (which
causes task.wait() to return) and when it calls
scheduler.notify(TaskCompleted). On a multi-threaded runtime the test
can read the scheduler events before the worker records the event.

Fix by polling for the TaskCompleted event with a timeout instead of
checking it once.

https://claude.ai/code/session_017uGnkXcc2zLYNX3sdipDJs
@swlynch99 swlynch99 merged commit f6de352 into main Feb 21, 2026
7 checks passed
@swlynch99 swlynch99 deleted the claude/fix-failing-tests-RkHQ2 branch February 21, 2026 02:27
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