Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rtunazzz committed Jan 27, 2023
1 parent f2b4f0b commit f07d369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (u *User) Delay() time.Duration {
return u.d
}

// GetDelay returns the delay between requests updating user's current positions
// SetHeaders sets headers the client uses for every request.
func (u *User) SetHeaders(h map[string]string) {
headers := make(map[string]string, len(h))
// copy them so it doesn't matter if the input is modified by caller later
Expand All @@ -78,7 +78,7 @@ func (u *User) SetHeaders(h map[string]string) {
u.headers = h
}

// GetDelay returns the delay between requests updating user's current positions
// Headers returns headers the client uses for every request.
func (u *User) Headers() map[string]string {
u.mtx.Lock()
defer u.mtx.Unlock()
Expand Down

0 comments on commit f07d369

Please sign in to comment.