Open mlajkim opened 5 months ago
Current SIA v3.2 turns on/off based on given configurations, but it has the following probles:
this.config.ProviderService === "" && this.config.CertFile === "" && this.config.KeyFile === ""
this.config.CertFile === "" && this.config.KeyFile === ""
this.config.ProviderService === ""
DerivedState
DerivedState := func() { if this.config.ProviderService != "" { return "identityd" } if config.CertFile === "" &&config.KeyFile === "" { return "readLocalFile" } return "inactive" }()
Current SIA v3.2 turns on/off based on given configurations, but it has the following probles:
this.config.ProviderService === "" && this.config.CertFile === "" && this.config.KeyFile === ""
this.config.CertFile === "" && this.config.KeyFile === ""
and only includethis.config.ProviderService === ""
this.config.ProviderService === "" && this.config.CertFile === "" && this.config.KeyFile === ""
DerivedState
that holds such combination, it would be much easier to read