implement a string representation of the version number

This will be useful as soon as we start supporting non-gQUIC versions.
This commit is contained in:
Marten Seemann
2017-09-27 11:39:12 +07:00
parent 79c176692e
commit 6dde979f8f
12 changed files with 39 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ func init() {
for i := range protocol.SupportedVersions {
version := protocol.SupportedVersions[i]
Context(fmt.Sprintf("with version %d", version), func() {
Context(fmt.Sprintf("with version %s", version), func() {
Measure(fmt.Sprintf("transferring a %d MB file", size), func(b Benchmarker) {
var ln quic.Listener
serverAddr := make(chan net.Addr)