Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 3, 2024
1 parent df7f4e0 commit ec43d0b
Show file tree
Hide file tree
Showing 6 changed files with 2,887 additions and 2,884 deletions.
2 changes: 1 addition & 1 deletion cmd/hidden_lake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ queue_period_ms: 5000
<td>1x2.5GHz, 1.0GB RAM, 5GB VNMe</td>
<td>±07.08.2027</td>
<td>on</td>
<td>100_000</td>
<td>30_000</td>
</tr>
<tr>
<td>4</td>
Expand Down
3,514 changes: 1,757 additions & 1,757 deletions cmd/hidden_lake/_test/result/coverage.out

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion examples/traffic_actions/keeper/prod_test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const (
cPrivKeyPath = "../_keys/priv.key"
)

// for i in {1..100}; do echo $i; go run .; done;
var gAddrHLTs = [][2]string{
{"94.103.91.81:9582", "8Jkl93Mdk93md1bz"},
{"195.133.1.126:9582", "kf92j74Nof92n9F4"},
Expand Down Expand Up @@ -82,6 +83,7 @@ func main() {
payload.NewPayload32(hls_settings.CNetworkMask, msg),
)

start := time.Now()
if err := hltClient.PutMessage(ctx, netMsg); err != nil {
fmt.Printf("%d. %s: %s\n", i+1, addrHLT[0], err)
continue
Expand All @@ -92,12 +94,13 @@ func main() {
fmt.Printf("%d. %s: %s\n", i+1, addrHLT[0], err)
continue
}
respTime := time.Since(start)

if !bytes.Equal(netMsg.ToBytes(), gotNetMsg.ToBytes()) {
fmt.Printf("%d. %s: !bytes.Equal(netMsg.ToBytes(), gotNetMsg.ToBytes())\n", i+1, addrHLT[0])
continue
}

fmt.Printf("%d. HLT server '%s' is working properly;\n", i+1, addrHLT[0])
fmt.Printf("%d. HLT server '%s' is working properly (response_time=%s);\n", i+1, addrHLT[0], respTime)
}
}
2 changes: 1 addition & 1 deletion test/result/badge_codelines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ec43d0b

Please sign in to comment.