Removed 'web.github.flush-data-to-files' from config

This commit is contained in:
Florian CUNY 2019-04-21 10:34:48 +02:00
parent aebbbabb5c
commit f5df341212
2 changed files with 1 additions and 22 deletions

View File

@ -184,13 +184,6 @@ public class Settings implements DataObject {
@ConfigEntry(path = "web.github.connection-interval", since = "1.5.0") @ConfigEntry(path = "web.github.connection-interval", since = "1.5.0")
private int githubConnectionInterval = 60; private int githubConnectionInterval = 60;
@ConfigComment("Toggle whether the downloaded data should be flushed to files.")
@ConfigComment("It helps to prevent previously downloaded data being lost due to a more recent connection that failed")
@ConfigComment("to connect to the GitHub API.")
@ConfigComment("Such files are stored in JSON format and do not usually take up more than a few kilobytes of disk space each.")
@ConfigEntry(path = "web.github.flush-data-to-files", since = "1.5.0")
private boolean githubFlushDataToFiles = true;
@ConfigEntry(path = "web.updater.check-updates.bentobox", since = "1.3.0", hidden = true) @ConfigEntry(path = "web.updater.check-updates.bentobox", since = "1.3.0", hidden = true)
private boolean checkBentoBoxUpdates = true; private boolean checkBentoBoxUpdates = true;
@ -490,14 +483,6 @@ public class Settings implements DataObject {
this.githubConnectionInterval = githubConnectionInterval; this.githubConnectionInterval = githubConnectionInterval;
} }
public boolean isGithubFlushDataToFiles() {
return githubFlushDataToFiles;
}
public void setGithubFlushDataToFiles(boolean githubFlushDataToFiles) {
this.githubFlushDataToFiles = githubFlushDataToFiles;
}
public boolean isCheckBentoBoxUpdates() { public boolean isCheckBentoBoxUpdates() {
return checkBentoBoxUpdates; return checkBentoBoxUpdates;
} }

View File

@ -97,11 +97,5 @@ web:
# this value greater than 15 minutes. # this value greater than 15 minutes.
# Setting this to 0 will make BentoBox download data only at startup. # Setting this to 0 will make BentoBox download data only at startup.
# Added since 1.5.0. # Added since 1.5.0.
connection-interval: 60 connection-interval: 10
# Toggle whether the downloaded data should be flushed to files.
# It helps to prevent previously downloaded data being lost due to a more recent connection that failed
# to connect to the GitHub API.
# Such files are stored in JSON format and do not usually take up more than a few kilobytes of disk space each.
# Added since 1.5.0.
flush-data-to-files: true
uniqueId: config uniqueId: config