adamkali / adamkali/MiraculousKingdom

Make the Queue a Server State

Đang mở
#24 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When Issue #21 is complete it will help #20 to have the Queue be held as
```rust
pub async fn get_queue(
Extension(mongo): Extension,
State(queue): State>>
) -> Json {
```
rather than

```rust
pub async fn get_queue(
Extension(mongo): Extension,
Path(pass): Path,
) -> Json {
```

this way we will not need to do as many db look ups, and anyone connected could theoretically poll the server by the 'get_queue' function and it will be changed by the post and put methods.

- [x] Change the Queue methods to hold state.
- [x] Create a method called set_state to set the queue from the stored database.
- [ ] test the state on multiple Clients

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.