diff --git a/worker/worker.go b/worker/worker.go index 670ef2a..54ef359 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -26,8 +26,15 @@ var rpcServer = rpc.NewServer() func Start(_conf config.Config) { conf = _conf ctx, cancel := context.WithCancel(context.Background()) + defer cancel() - uuid := uuid.New() + // TODO Generate and Save a ID if the Config has none + //uuid := uuid.New() + uuid, err := uuid.Parse(conf.Worker.ID) + if err != nil { + slog.Error("Cannot Parse ID", "err", err) + return + } sigs := make(chan os.Signal, 1) signal.Notify(sigs, os.Interrupt)