Fixes #1576. Adds a new package mock_metrics, with code generated by gomock, in order to test the change. Modifies publisher.New to take a metrics.Scope and an SA, and unexport SA. Moves core of submission loop into a separate function, singleLogSubmit, which can return an error rather than using the continue keyword. This reduces repetition of AuditErr lines, and makes it easier to put error statting in one place. |
||
|---|---|---|
| .. | ||
| proto | ||
| publisher.go | ||
| publisher_test.go | ||