Wworking on improving the tool
This commit is contained in:
+9
-2
@@ -88,7 +88,14 @@ func main() {
|
||||
// The pure-Go implementation is used by default (no CGo required).
|
||||
// Build with -tags epics to use the CGo-based libca implementation instead.
|
||||
if cfg.Datasource.EPICS.Enabled && epics.Available() {
|
||||
ds := epics.New(cfg.Datasource.EPICS.CAAddrList, cfg.Datasource.EPICS.ArchiveURL, cfg.Datasource.EPICS.PVNames)
|
||||
ds := epics.New(
|
||||
cfg.Datasource.EPICS.CAAddrList,
|
||||
cfg.Datasource.EPICS.ArchiveURL,
|
||||
cfg.Datasource.EPICS.ChannelFinderURL,
|
||||
cfg.Datasource.EPICS.AutoSyncFilter,
|
||||
cfg.Datasource.EPICS.AutoSyncFromArchiver,
|
||||
cfg.Datasource.EPICS.PVNames,
|
||||
)
|
||||
if err := ds.Connect(ctx); err != nil {
|
||||
log.Error("epics connect", "err", err)
|
||||
} else {
|
||||
@@ -106,7 +113,7 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
srv := server.New(cfg.Server.Listen, webFS, brk, synthDS, store, cfg.Datasource.EPICS.ChannelFinderURL, log)
|
||||
srv := server.New(cfg.Server.Listen, webFS, brk, synthDS, store, cfg.Datasource.EPICS.ChannelFinderURL, cfg.Datasource.EPICS.ArchiveURL, log)
|
||||
|
||||
if err := srv.Start(ctx); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "server error: %v\n", err)
|
||||
|
||||
Reference in New Issue
Block a user