mutex lock GetRatio

This commit is contained in:
William Clark 2022-12-05 13:20:34 +00:00
parent 737ae78c34
commit fd9e8617b5

View File

@ -82,5 +82,8 @@ func (t *TH7Adapter) GetPivdd() float64 {
// Ratio table
func (t *TH7Adapter) GetRatio() core.Ratio {
t.mu.Lock()
defer t.mu.Unlock()
return t.table
}