Skip to content

Commit

Permalink
ref: Remove unused config properties (jitsi#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Dec 2, 2024
1 parent 9119130 commit 2c7d4d5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ class BridgeConfig private constructor() {
"$BASE.max-bridge-participants".from(JitsiConfig.newConfig)
}

val maxBridgePacketRatePps: Int by config {
"org.jitsi.jicofo.BridgeSelector.MAX_BRIDGE_PACKET_RATE".from(JitsiConfig.legacyConfig)
"$BASE.max-bridge-packet-rate".from(JitsiConfig.newConfig)
}

val averageParticipantPacketRatePps: Int by config {
"org.jitsi.jicofo.BridgeSelector.AVG_PARTICIPANT_PACKET_RATE".from(JitsiConfig.legacyConfig)
"$BASE.average-participant-packet-rate-pps"
.from(JitsiConfig.newConfig).softDeprecated("use $BASE.average-participant-stress")
}

val averageParticipantStress: Double by config {
"$BASE.average-participant-stress".from(JitsiConfig.newConfig)
}
Expand Down
4 changes: 0 additions & 4 deletions jicofo-selector/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jicofo {
bridge {
// The maximum number of participants in a single conference to put on one bridge (use -1 for no maximum).
max-bridge-participants = 80
// The assumed maximum packet rate that a bridge can handle.
max-bridge-packet-rate = 50000
// The assumed average packet rate per participant.
average-participant-packet-rate-pps = 500
// The default assumed average stress per participant. This value is only used when a bridge does not report its
// own value.
average-participant-stress = 0.01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,21 @@ class BridgeConfigTest : ShouldSpec() {
MetaconfigSettings.cacheEnabled = false
context("with no config the defaults from reference.conf should be used") {
config.maxBridgeParticipants shouldBe 80
config.maxBridgePacketRatePps shouldBe 50000
config.averageParticipantPacketRatePps shouldBe 500
}
context("with legacy config") {
withLegacyConfig(legacyConfig) {
config.maxBridgeParticipants shouldBe 111
config.maxBridgePacketRatePps shouldBe 111
config.averageParticipantPacketRatePps shouldBe 111
}
}
context("with new config") {
withNewConfig(newConfig) {
config.maxBridgeParticipants shouldBe 222
config.maxBridgePacketRatePps shouldBe 222
config.averageParticipantPacketRatePps shouldBe 222
}
}
context("with both legacy and new config the legacy values should be used") {
withLegacyConfig(legacyConfig) {
withNewConfig(newConfig) {
config.maxBridgeParticipants shouldBe 111
config.maxBridgePacketRatePps shouldBe 111
config.averageParticipantPacketRatePps shouldBe 111
}
}
}
Expand Down Expand Up @@ -115,7 +107,6 @@ private val newConfig = """
jicofo {
bridge {
max-bridge-participants=222
max-bridge-packet-rate=222
average-participant-packet-rate-pps=222
}
}
Expand Down

0 comments on commit 2c7d4d5

Please sign in to comment.