(reaction, msg string)
| 778 | } |
| 779 | |
| 780 | func (m *Manager) react(reaction, msg string) error { |
| 781 | switch reaction { |
| 782 | case cmn.IgnoreReaction: |
| 783 | return nil |
| 784 | case cmn.WarnReaction: |
| 785 | m.Metrics.lock() |
| 786 | m.Metrics.Warnings = append(m.Metrics.Warnings, msg) |
| 787 | m.Metrics.unlock() |
| 788 | return nil |
| 789 | case cmn.AbortReaction: |
| 790 | return fmt.Errorf("%s", msg) // error will be reported on abort |
| 791 | default: |
| 792 | cos.AssertMsg(false, reaction) |
| 793 | return nil |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | func (bsi *buildingShardInfo) Unpack(unpacker *cos.ByteUnpack) error { |
| 798 | var err error |
no test coverage detected