()
| 793 | } |
| 794 | |
| 795 | func (mctx *MigrationContext) GetNiceRatio() float64 { |
| 796 | mctx.throttleMutex.Lock() |
| 797 | defer mctx.throttleMutex.Unlock() |
| 798 | |
| 799 | return mctx.niceRatio |
| 800 | } |
| 801 | |
| 802 | func (mctx *MigrationContext) SetNiceRatio(newRatio float64) { |
| 803 | if newRatio < 0.0 { |
no outgoing calls
no test coverage detected