[PR #194] [MERGED] Gracefully handle shutdown in db task #199

Closed
opened 2026-02-27 10:16:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/194
Author: @cgzones
Created: 12/13/2025
Status: Merged
Merged: 12/13/2025
Merged by: @matze

Base: masterHead: shutdown


📝 Commits (1)

  • 56b511b Gracefully handle shutdown in db task

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 crates/wastebin_core/src/db.rs (+4 -3)

📄 Description

During shutdown the channel receiver in the database task is going to fail to receive a message since the sender was closed.

Do not treat this as error, such that the application will not exit with a failure code.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/matze/wastebin/pull/194 **Author:** [@cgzones](https://github.com/cgzones) **Created:** 12/13/2025 **Status:** ✅ Merged **Merged:** 12/13/2025 **Merged by:** [@matze](https://github.com/matze) **Base:** `master` ← **Head:** `shutdown` --- ### 📝 Commits (1) - [`56b511b`](https://github.com/matze/wastebin/commit/56b511b8f3273ff006bffb9f26fa710ba1e8d19b) Gracefully handle shutdown in db task ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/wastebin_core/src/db.rs` (+4 -3) </details> ### 📄 Description During shutdown the channel receiver in the database task is going to fail to receive a message since the sender was closed. Do not treat this as error, such that the application will not exit with a failure code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:16:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#199
No description provided.