Skip to content

Commit

Permalink
fix sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzuochao authored and yndu13 committed Dec 29, 2020
1 parent cdfabf6 commit dcea6da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-12-29 Version: v1.3.8
- Fix Sleep.

2020-12-29 Version: v1.3.7
- Support go 1.11.

Expand Down
3 changes: 2 additions & 1 deletion service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,10 @@ func Is5xx(code *int) *bool {
return tea.Bool(tmp >= 500 && tmp < 600)
}

func Sleep(millisecond *int) {
func Sleep(millisecond *int) error {
ms := tea.IntValue(millisecond)
time.Sleep(time.Duration(ms) * time.Millisecond)
return nil
}

func ToArray(in interface{}) []map[string]interface{} {
Expand Down

0 comments on commit dcea6da

Please sign in to comment.