go fmt
This commit is contained in:
parent
8e044be7c2
commit
ac25502308
@ -1,4 +1,5 @@
|
|||||||
package blocksync
|
package blocksync
|
||||||
|
|
||||||
// FIXME: This needs to be reviewed.
|
// FIXME: This needs to be reviewed.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -92,6 +92,7 @@ type Response struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type status uint64
|
type status uint64
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Ok status = 0
|
Ok status = 0
|
||||||
// We could not fetch all blocks requested (but at least we returned
|
// We could not fetch all blocks requested (but at least we returned
|
||||||
@ -162,7 +163,7 @@ type validatedResponse struct {
|
|||||||
|
|
||||||
// Decompress messages and form full tipsets with them. The headers
|
// Decompress messages and form full tipsets with them. The headers
|
||||||
// need to have been requested as well.
|
// need to have been requested as well.
|
||||||
func (res *validatedResponse) toFullTipSets() ([]*store.FullTipSet) {
|
func (res *validatedResponse) toFullTipSets() []*store.FullTipSet {
|
||||||
if len(res.tipsets) == 0 || len(res.tipsets) != len(res.messages) {
|
if len(res.tipsets) == 0 || len(res.tipsets) != len(res.messages) {
|
||||||
// This decompression can only be done if both headers and
|
// This decompression can only be done if both headers and
|
||||||
// messages are returned in the response. (The second check
|
// messages are returned in the response. (The second check
|
||||||
|
@ -18,7 +18,6 @@ import (
|
|||||||
inet "github.com/libp2p/go-libp2p-core/network"
|
inet "github.com/libp2p/go-libp2p-core/network"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
// BlockSyncService is the component that services BlockSync requests from
|
// BlockSyncService is the component that services BlockSync requests from
|
||||||
// peers.
|
// peers.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user