actix / actix/actix-extras

Settings: actix.mode has no actix behaviour associated

オープン
#387 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
A-settings C-feature
主要言語
Rust
スター
889
フォーク
224
平均マージ
9時間 37分
マージ済み PR(30日)
20

説明

Your issue may already be reported! Please search on the [actix-extras issue tracker](https://github.com/actix/actix-extras/issues) before creating one.

## Expected Behavior

I expect that all of the settings under the "actix" table correspond to some actix behaviour.

## Current Behavior

The config field "actix.mode" has no actix behaviour associated with it, and is ignored by `ApplySettings`.

## Possible Solution

IMO having a `mode` config is very helpful, being a very common concept, so I suggest it is moved into the `application` part of the config structure, or another config section being created such as "common" for config that actix-settings provides but doesnt have any implemented behaviour.

Another alternative is for actix-settings to use this `mode` value to provide different defaults for prod vs dev, and document this.

## Steps to Reproduce (for bugs)

## Context

## Your Environment

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。