Merge media and RPC interval config options

master
HimbeerserverDE 2021-03-06 16:34:11 +01:00
parent 69f889512e
commit 89fb5270fa
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
2 changed files with 5 additions and 8 deletions

View File

@ -98,15 +98,12 @@ Description: The CSM restriction flags, default is none
* 63: All restrictions
To set multiple flags at the same time add the corresponding numbers
```
> `rpc_reconnect_interval`
> `server_reintergration_interval`
```
Type: Integer
Description: Number of seconds between RPC reconnection attempts, default is 600
```
> `media_refetch_interval`
```
Type: Integer
Description: Number of minutes between media refetching, default is 10
Description: Number of seconds between server reintegrations, default is 600.
A server reintegration is reconnecting the RPC user and refetching the media
from one or more minetest servers.
```
> `disable_builtin`
```

2
rpc.go
View File

@ -281,7 +281,7 @@ func init() {
rpcSrvs = make(map[*Peer]struct{})
rpcSrvMu.Unlock()
reconnect, ok := GetConfKey("rpc_reconnect_interval").(int)
reconnect, ok := GetConfKey("server_reintegration_interval").(int)
if !ok {
reconnect = 600
}