minor
This commit is contained in:
parent
db791e26ef
commit
e3ae0ef5c9
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
|
||||||
"github.com/lbryio/reflector.go/reflector"
|
"github.com/lbryio/reflector.go/reflector"
|
||||||
|
"github.com/lbryio/reflector.go/stream"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -28,7 +29,7 @@ func sendBlobCmd(cmd *cobra.Command, args []string) {
|
||||||
log.Fatal("error connecting client to server", err)
|
log.Fatal("error connecting client to server", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
blob := make([]byte, 1024)
|
blob := make(stream.Blob, 1024)
|
||||||
_, err = rand.Read(blob)
|
_, err = rand.Read(blob)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("failed to make random blob", err)
|
log.Fatal("failed to make random blob", err)
|
||||||
|
|
Loading…
Reference in a new issue