Skip to content

Commit

Permalink
fix: 导出函数
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Feb 15, 2025
1 parent 009cc2e commit 99664b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/sign/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func init() {
}
}

func containSignPKG(cmd string) bool {
func ContainSignPKG(cmd string) bool {
_, ok := signMap[cmd]
return ok
}
Expand Down
4 changes: 2 additions & 2 deletions client/sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (c *Client) sortByLatency() {
}

func (c *Client) Sign(cmd string, seq uint32, data []byte) (*Response, error) {
if !containSignPKG(cmd) {
if !ContainSignPKG(cmd) {
return nil, nil
}
if time.Now().After(c.lastTestTime.Add(30 * time.Minute)) {
Expand Down Expand Up @@ -148,7 +148,7 @@ func (c *Client) test() {
}

func (i *remote) sign(cmd string, seq uint32, buf []byte, header http.Header) (*Response, error) {
if !containSignPKG(cmd) {
if !ContainSignPKG(cmd) {
return nil, nil
}
sb := strings.Builder{}
Expand Down

0 comments on commit 99664b0

Please sign in to comment.