Skip to content

Commit 0fef53b

Browse files
fix a typo
1 parent f955bce commit 0fef53b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ $ brew install timeout-checker
99
server side:
1010
```
1111
$ checker-api -wait 5 -port 8081
12-
2021/11/19 16:37:06 recieved
13-
2021/11/19 16:37:11 returned
14-
2021/11/19 16:37:14 recieved
15-
2021/11/19 16:37:19 returned
12+
2021/11/22 15:21:30 wait 3 second
13+
2021/11/22 15:21:30 received
14+
2021/11/22 15:21:33 returned
15+
2021/11/22 15:21:42 wait 3 second
16+
2021/11/22 15:21:42 received
17+
2021/11/22 15:21:45 returned
1618
```
1719

1820
client side:

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ type Wait struct {
1515
}
1616

1717
func (wait *Wait) healthcheck(w http.ResponseWriter, r *http.Request) {
18-
log.Println("recieved")
18+
log.Printf("wait %d second", wait.time)
19+
log.Println("received")
1920
time.Sleep(time.Duration(wait.time) * time.Second)
2021

2122
w.WriteHeader(http.StatusOK)

0 commit comments

Comments
 (0)