prepare dummy lock
not currently in used, but leftover from an experiment and committing to
be able to use it in the future
@@ -258,6 +258,8 @@ func startupRoutine() (*state.State, *clientv3.Client, *elasticsearch.Client) {
}
appState.Locks = etcdLock
+ // appState.Locks = &dummyLock{}
+
logger.WithField("action", "startup").WithField("startup_time_left", timeTillDeadline(ctx)).
Debug("created etcd session")
// END remove
@@ -337,3 +339,13 @@ func logger() *logrus.Logger {
return logger
}
+
+type dummyLock struct{}
+
+func (d *dummyLock) LockConnector() (func() error, error) {
+ return func() error { return nil }, nil
+}
+
+func (d *dummyLock) LockSchema() (func() error, error) {
+ return func() error { return nil }, nil
+}
