Fix benchmark not building with changes to krpc.Msg.Token

This commit is contained in:
Matt Joiner 2019-01-21 22:53:42 +01:00
parent ddbba214da
commit 25cd79aa1c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func BenchmarkMarshalThenUnmarshalKrpcMsg(tb *testing.B) {
T: "420",
Y: "r",
R: &krpc.Return{
Token: "re-up",
Token: func() *string { t := "re-up"; return &t }(),
},
IP: krpc.NodeAddr{IP: net.ParseIP("1.2.3.4"), Port: 1337},
ReadOnly: true,