NewExecutionMonitor creates a new execution monitor
(commandName, operationID, embed string, retries uint, reportedOperationMessages []*models.Message, mtaClient mtaclient.MtaClientOperations)
| 47 | |
| 48 | // NewExecutionMonitor creates a new execution monitor |
| 49 | func NewExecutionMonitor(commandName, operationID, embed string, retries uint, reportedOperationMessages []*models.Message, mtaClient mtaclient.MtaClientOperations) *ExecutionMonitor { |
| 50 | return &ExecutionMonitor{ |
| 51 | mtaClient: mtaClient, |
| 52 | reportedMessages: getAlreadyReportedOperationMessages(reportedOperationMessages), |
| 53 | commandName: commandName, |
| 54 | operationID: operationID, |
| 55 | embed: embed, |
| 56 | retries: retries, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func getAlreadyReportedOperationMessages(reportedOperationMessages []*models.Message) map[int64]bool { |
| 61 | result := make(map[int64]bool) |
no test coverage detected