cmd, lib: Fix ineffectual assignments (ineffasign) and comment spelling

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3405
This commit is contained in:
Jakob Borg
2016-07-15 14:23:20 +00:00
parent e3ccc45d19
commit 3176629410
11 changed files with 25 additions and 19 deletions

View File

@@ -539,8 +539,9 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
errors := logger.NewRecorder(l, logger.LevelWarn, maxSystemErrors, 0)
systemLog := logger.NewRecorder(l, logger.LevelDebug, maxSystemLog, initialSystemLog)
// Event subscription for the API; must start early to catch the early events. The LocalChangeDetected
// event might overwhelm the event reciever in some situations so we will not subscribe to it here.
// Event subscription for the API; must start early to catch the early
// events. The LocalChangeDetected event might overwhelm the event
// receiver in some situations so we will not subscribe to it here.
apiSub := events.NewBufferedSubscription(events.Default.Subscribe(events.AllEvents&^events.LocalChangeDetected), 1000)
if len(os.Getenv("GOMAXPROCS")) == 0 {