From 0c6efd8c51056fb52da1356aa193929b938f6dd2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 14 Jul 2022 17:13:41 -0400 Subject: [PATCH] config: update config to reflect simple-priority queue (#9007) (#9008) Update the queue documentation to reflect the types of queues and current default queue. (cherry picked from commit c1c501ecd43dec53e56a197f7013bface2a962fb) Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> --- config/config.go | 2 +- config/toml.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index c4182fe48..e7628b7f1 100644 --- a/config/config.go +++ b/config/config.go @@ -762,7 +762,7 @@ type P2PConfig struct { //nolint: maligned UseLegacy bool `mapstructure:"use-legacy"` // Makes it possible to configure which queue backend the p2p - // layer uses. Options are: "fifo", "priority" and "wdrr", + // layer uses. Options are: "fifo", "simple-priority", "priority", and "wdrr", // with the default being "priority". QueueType string `mapstructure:"queue-type"` } diff --git a/config/toml.go b/config/toml.go index 284e1919a..4792f9d63 100644 --- a/config/toml.go +++ b/config/toml.go @@ -298,10 +298,11 @@ pprof-laddr = "{{ .RPC.PprofListenAddress }}" ####################################################### [p2p] -# Enable the legacy p2p layer. +# Select the p2p internal queue. +# Options are: "fifo", "simple-priority", "priority", and "wdrr" +# with the default being "priority". use-legacy = {{ .P2P.UseLegacy }} -# Select the p2p internal queue queue-type = "{{ .P2P.QueueType }}" # Address to listen for incoming connections