mutex lock GetRatio
This commit is contained in:
parent
737ae78c34
commit
fd9e8617b5
@ -82,5 +82,8 @@ func (t *TH7Adapter) GetPivdd() float64 {
|
|||||||
|
|
||||||
// Ratio table
|
// Ratio table
|
||||||
func (t *TH7Adapter) GetRatio() core.Ratio {
|
func (t *TH7Adapter) GetRatio() core.Ratio {
|
||||||
|
t.mu.Lock()
|
||||||
|
defer t.mu.Unlock()
|
||||||
|
|
||||||
return t.table
|
return t.table
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user