Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyx committed May 27, 2020
1 parent 5816783 commit 72f9170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extension/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

var authSign auth.HTTPAuth

// SetHttpAuth 设置HttpAuth
// SetHTTPAuth 设置HttpAuth
func SetHTTPAuth(httpAuth auth.HTTPAuth) {
authSign = httpAuth
}

// GetHttpAuth 获取HttpAuth
// GetHTTPAuth 获取HttpAuth
func GetHTTPAuth() auth.HTTPAuth {
return authSign
}
2 changes: 1 addition & 1 deletion protocol/auth/sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func init() {
type AuthSignature struct {
}

// HttpHeaders
// HTTPHeaders HTTPHeaders
func (t *AuthSignature) HTTPHeaders(url string, appID string, secret string) map[string][]string {
ms := time.Now().UnixNano() / int64(time.Millisecond)
timestamp := strconv.FormatInt(ms, 10)
Expand Down

0 comments on commit 72f9170

Please sign in to comment.