Remove pq and sql dep from syncthing, split build targets

This commit is contained in:
Audrius Butkevicius
2020-06-21 11:06:57 +01:00
parent f4dc889951
commit 8fc295ad00
4 changed files with 86 additions and 60 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ func (s *Service) reportData(ctx context.Context, urVersion int, preview bool) (
l.Warnf("Unhandled versioning type for usage reports: %s", cfg.Versioning.Type)
}
}
contract.SortPqInt64Array(report.RescanIntvs)
report.RescanIntvs.Sort()
for _, cfg := range s.cfg.Devices() {
if cfg.Introducer {
@@ -256,7 +256,7 @@ func (s *Service) reportData(ctx context.Context, urVersion int, preview bool) (
report.FolderUsesV3.FilesystemType[cfg.FilesystemType.String()]++
report.FolderUsesV3.FsWatcherDelays = append(report.FolderUsesV3.FsWatcherDelays, int64(cfg.FSWatcherDelayS))
}
contract.SortPqInt64Array(report.FolderUsesV3.FsWatcherDelays)
report.FolderUsesV3.FsWatcherDelays.Sort()
guiCfg := s.cfg.GUI()
// Anticipate multiple GUI configs in the future, hence store counts.