"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/ocsp/ocsp_forever/main.go" between
boulder-release-2020-06-23.tar.gz and boulder-release-2020-06-29.tar.gz

About: Boulder is an ACME-based Certificate Authority (CA) used by Let’s Encrypt (written in Go).

main.go  (boulder-release-2020-06-23):main.go  (boulder-release-2020-06-29)
skipping to change at line 60 skipping to change at line 60
func init() { func init() {
prom.MustRegister(response_count) prom.MustRegister(response_count)
prom.MustRegister(request_time_seconds_hist) prom.MustRegister(request_time_seconds_hist)
prom.MustRegister(request_time_seconds_summary) prom.MustRegister(request_time_seconds_summary)
prom.MustRegister(response_age_seconds) prom.MustRegister(response_age_seconds)
prom.MustRegister(response_age_seconds_summary) prom.MustRegister(response_age_seconds_summary)
} }
func do(f string) { func do(f string) {
start := time.Now() start := time.Now()
resp, err := helper.Req(f) resp, err := helper.Req(f, helper.ConfigFromFlags())
latency := time.Since(start) latency := time.Since(start)
if err != nil { if err != nil {
errors_count.With(prom.Labels{}).Inc() errors_count.With(prom.Labels{}).Inc()
fmt.Fprintf(os.Stderr, "error for %s: %s\n", f, err) fmt.Fprintf(os.Stderr, "error for %s: %s\n", f, err)
} }
request_time_seconds_hist.Observe(latency.Seconds()) request_time_seconds_hist.Observe(latency.Seconds())
response_count.With(prom.Labels{}).Inc() response_count.With(prom.Labels{}).Inc()
request_time_seconds_summary.Observe(latency.Seconds()) request_time_seconds_summary.Observe(latency.Seconds())
if resp != nil { if resp != nil {
response_age_seconds.Observe(time.Since(resp.ThisUpdate).Seconds( )) response_age_seconds.Observe(time.Since(resp.ThisUpdate).Seconds( ))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)