Skip to content

Commit 6c71ed7

Browse files
committed
CONFIG: Updated default values
The default values for the file patterns were incorrect. Also changed the scan interval to 1000 so that if there is any errors, it will only spam once per second by default.
1 parent 6cdf760 commit 6c71ed7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ The config file by default will be named `config.toml` and the initial content w
6363
|:-----|:------------|:-------:|
6464
| Port | Set the port for the server to connect to. | `"8080"` |
6565
| Directory | Specify the directory where this tool should watch for file changes to sync up with bitburner. | `"./"` |
66-
| FileScanInterval | The amount of miliseconds the file scanner waits each loop. | `100` |
66+
| FileScanInterval | The amount of miliseconds the file scanner waits each loop. | `1000` |
6767
| [FilePatterns] | Holds include and exclude file pattern matching fields which allow you to define which files to sync and which not to. | [Pattern matching rules](https://github.com/bmatcuk/doublestar?tab=readme-ov-file#patterns) |
68-
| - Include | Which files should be included. | `["**/*.js", "**/*.ts"]` |
69-
| - Exclude | Which files to ignore. This is checked before the include patterns. | `["**/*.d.ts"]` |
68+
| - Include | Which files should be included. | `["*.js", "*.ts"]` |
69+
| - Exclude | Which files to ignore. This is checked before the include patterns. | `["*.d.ts"]` |
7070

7171
## How to build
7272

config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ type TConfig struct {
2424
var Values = &TConfig{
2525
Port: "8080",
2626
Directory: "./",
27-
FileScanInterval: 100,
27+
FileScanInterval: 1000,
2828
FilePatterns: TConfigFilrPatterns{
29-
Include: []string{"**/*.js", "**/*.ts"},
30-
Exclude: []string{"**/*.d.ts"},
29+
Include: []string{"*.js", "*.ts"},
30+
Exclude: []string{"*.d.ts"},
3131
},
3232
}
3333

0 commit comments

Comments
 (0)