Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Fixed Service API when merging into master.
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed Sep 23, 2016
1 parent b2b4063 commit 5f85dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ func (s *instrumentingService) Login(username, password string) (users.User, err
return s.Service.Login(username, password)
}

func (s *instrumentingService) Register(username, password, email string) (string, error) {
func (s *instrumentingService) Register(username, password, email, first, last string) (string, error) {
defer func(begin time.Time) {
s.requestCount.With("method", "register").Add(1)
s.requestLatency.With("method", "register").Observe(time.Since(begin).Seconds())
}(time.Now())

return s.Service.Register(username, password, email)
return s.Service.Register(username, password, email, first, last)
}

func (s *instrumentingService) PostUser(user users.User) (string, error) {
Expand Down

0 comments on commit 5f85dc7

Please sign in to comment.