Skip to content

Commit 9fadd7b

Browse files
committed
fix issue
1 parent dd7fe33 commit 9fadd7b

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

networknext/data.go

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -957,16 +957,8 @@ func RouteShadersSchema() datasource_schema.Schema {
957957
Description: "The amount of latency that is acceptable in milliseconds. Any latency above this is eligible for acceleration. For example, setting this value to 50ms would exclude any players with latency < 50ms from being accelerated. Default is 20ms",
958958
Required: true,
959959
},
960-
"acceptable_packet_loss_instant": datasource_schema.Float64Attribute{
961-
Description: "The instantaneous packet loss that is acceptable. For example, setting to 1%% will allow packet loss up to 1%% in a 10 second period before enabling acceleration. Default is 0.25%%",
962-
Required: true,
963-
},
964-
"acceptable_packet_loss_sustained": datasource_schema.Float64Attribute{
965-
Description: "The sustained packet loss that is acceptable. For example, setting to 0.1%% will allow packet loss up to 0.1%% in a 30 second period before enabling acceleration. Default is 0.1%%",
966-
Required: true,
967-
},
968-
"analysis_only": datasource_schema.BoolAttribute{
969-
Description: "Set this to true and acceleration is disabled. Analytics data will still be gathered from players of any buyer who use this route shader. Use this when you want to gather network perforance data for players, but you want accelerated turned off. Default is false.",
960+
"acceptable_packet_loss": datasource_schema.Float64Attribute{
961+
Description: "The packet loss that is acceptable. For example, setting to 1%% will allow packet loss up to 1%% before enabling acceleration. Default is 0.25%%",
970962
Required: true,
971963
},
972964
"bandwidth_envelope_up_kbps": datasource_schema.Int64Attribute{
@@ -985,10 +977,6 @@ func RouteShadersSchema() datasource_schema.Schema {
985977
Description: "The minimum latency reduction threshold in milliseconds. A latency reduction greater than or equal to this number in milliseconds must be predicted in order to accelerate the player. For example, 10ms would only accelerate players if a latency reduction >= 10ms is predicted. Default is 10ms.",
986978
Required: true,
987979
},
988-
"multipath": datasource_schema.BoolAttribute{
989-
Description: "If this is set to true then packets will be sent across the direct route (default internet path), as well as the network next path when a player is accelerated. Recommend setting this to true always. Default value is true.",
990-
Required: true,
991-
},
992980
"selection_percent": datasource_schema.Float64Attribute{
993981
Description: "The percentage of players eligible for acceleration. For example, setting this to 10%% would only accelerate 1 in 10 players. Default value is 100%% (all players eligible for acceleration).",
994982
Required: true,
@@ -997,10 +985,6 @@ func RouteShadersSchema() datasource_schema.Schema {
997985
Description: "The maximum amount of latency to trade for reduced packet loss. Packet loss above a certain amount is generally considered worse than latency. Trade up to this amount of latency to take a route with reduced packet loss. IMPORTANT: Network Next will still prefer the lowest latency route available. Default value is 20ms.",
998986
Required: true,
999987
},
1000-
"max_next_rtt": datasource_schema.Int64Attribute{
1001-
Description: "The maximum network next latency allowed. There is no point patting yourself on the back when you reduce 500ms latency to 450ms. 450ms is still completely unplayable! Set this value to the maximum reasonable accelerated latency that makes sense for your game. Network Next will not accelerate a player if their predicted post-acceleration latency is higher than this value. Default value is 250ms.",
1002-
Required: true,
1003-
},
1004988
"route_switch_threshold": datasource_schema.Int64Attribute{
1005989
Description: "If a player is already being accelerated, and a better route is available with a reduction of at least this much milliseconds from the current route, then switch to it. Don't set this too low or sessions will switch routes every 10 seconds due to natural fluctuation. Default value is 10ms.",
1006990
Required: true,
@@ -1009,18 +993,10 @@ func RouteShadersSchema() datasource_schema.Schema {
1009993
Description: "When initially selecting a route, find routes within this amount of milliseconds of the best available route and consider them to be equal, randomly selecting between them. Don't set this too low, or you won't get effective load balancing across relays. Default value is 5ms.",
1010994
Required: true,
1011995
},
1012-
"rtt_veto": datasource_schema.Int64Attribute{
1013-
Description: "If the accelerated latency becomes worse than the direct latency (default internet route) by this amount of milliseconds, then veto the session and stop accelerating the player. This is to avoid players hopping on/off of network next when latency fluctuation occurs. Don't set this too low, or players with fluctuating latency (due to edge issues or wifi) will fall off network next due to temporary high latency conditions. Default value is 20ms.",
1014-
Required: true,
1015-
},
1016996
"force_next": datasource_schema.BoolAttribute{
1017997
Description: "Force all players to be accelerated. This is useful for testing, or if you have a small professional player base for whom you want to enable acceleration BEFORE anything goes wrong, instead of being reactive and only accelerating them after something goes wrong. Default is false.",
1018998
Required: true,
1019999
},
1020-
"route_diversity": datasource_schema.Int64Attribute{
1021-
Description: "The minimum amount of distinct viable routes that must be available for a player to be accelerated. This setting can be useful to limit players in remote regions from taking network next when there is only one relay available to them. Only players with mulitple distinct paths will be accelerated, so there are backups if one relay becomse unroutable for this player. Don't set this too high or players with bad edge network conditions won't get accelerated. Default value is 0.",
1022-
Required: true,
1023-
},
10241000
},
10251001
},
10261002
},

test/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
networknext = {
55
source = "networknext.com/networknext/networknext"
6-
version = "5.0.13"
6+
version = "5.0.14"
77
}
88
}
99
}

0 commit comments

Comments
 (0)