Skip to content

Commit

Permalink
feat: added cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Mar 23, 2023
1 parent db72bfc commit ac14e9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions task/stats/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ type Service struct {
logDriver log.Driver
}

func (svc *Service) Init() (err error) {
go svc.cleanup()
return nil
}

func (svc *Service) InsertData(id primitive.ObjectID, records ...interface{}) (err error) {
resultSvc, err := svc.getResultService(id)
if err != nil {
Expand Down

0 comments on commit ac14e9a

Please sign in to comment.