Skip to content

Commit

Permalink
docs: fix code indents in README (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanweixiao authored Mar 21, 2024
1 parent f08ebfb commit 1d7d54e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ func handler(ctx serverless.Context) {
var msg Parameter
fc.UnmarshalArguments(&msg)

// get ip of the domain
// get ip of the domain
ips, _ := net.LookupIP(msg.Domain)

// get ip[0] ping latency
pinger, _ := ping.NewPinger(ips[0].String())

pinger.Count = 3
pinger.Run()
stats := pinger.Statistics()
Expand Down

0 comments on commit 1d7d54e

Please sign in to comment.