Skip to content

Commit

Permalink
removed mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Sep 15, 2016
1 parent 5d4924f commit f2fd45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 4 additions & 8 deletions epazote.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package epazote

import (
"regexp"
"sync"
)
import "regexp"

// Epazote parent struct
type Epazote struct {
sync.Mutex `yaml:"-" json:"-"`
Config Config
Services Services
debug bool
Config Config
Services Services
debug bool
}

// Config struct
Expand Down
3 changes: 0 additions & 3 deletions report.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ func (e *Epazote) Log(s *Service, status []byte) {

// Report create report to send via log/email
func (e *Epazote) Report(m MailMan, s *Service, a *Action, r *http.Response, eCode, sCode int, b, o string) {
e.Lock()
defer e.Unlock()

// set time
t := time.Now().UTC().Format(time.RFC3339)

Expand Down

0 comments on commit f2fd45e

Please sign in to comment.