Loadpoint: fix reentrant locks #2 (#18669)

This commit is contained in:
andig 2025-02-08 16:21:19 +01:00 • committed by GitHub
parent a6abb0cc6a
commit f93ceffa6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 103 additions and 36 deletions

View file

@ -144,7 +144,7 @@ type API interface {
SetDisableDelay(delay time.Duration)
// GetBatteryBoost returns the battery boost
GetBatteryBoost() bool
GetBatteryBoost() int
// SetBatteryBoost sets the battery boost
SetBatteryBoost(enable bool) error

View file

@ -126,10 +126,10 @@ func (mr *MockAPIMockRecorder) EffectivePriority() *gomock.Call {
}
// GetBatteryBoost mocks base method.
func (m *MockAPI) GetBatteryBoost() bool {
func (m *MockAPI) GetBatteryBoost() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBatteryBoost")
ret0, _ := ret[0].(bool)
ret0, _ := ret[0].(int)
return ret0
}