fix: update import for node

This commit is contained in:
Derrick Hammer 2024-01-29 00:02:15 -05:00
parent a0dcc52d63
commit 4b718e1dd3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ import (
"crypto/ed25519" "crypto/ed25519"
"errors" "errors"
"git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/encoding"
"git.lumeweb.com/LumeWeb/libs5-go/interfaces" _node "git.lumeweb.com/LumeWeb/libs5-go/node"
"git.lumeweb.com/LumeWeb/libs5-go/protocol/base" "git.lumeweb.com/LumeWeb/libs5-go/protocol/base"
"git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/libs5-go/types"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
@ -171,7 +171,7 @@ func (s *SignedMessage) EncodeMsgpack(enc *msgpack.Encoder) error {
return nil return nil
} }
func (s *SignedMessage) Sign(node interfaces.Node) error { func (s *SignedMessage) Sign(node *_node.Node) error {
if s.nodeId == nil { if s.nodeId == nil {
panic("nodeId is nil") panic("nodeId is nil")
} }

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/encoding"
"git.lumeweb.com/LumeWeb/libs5-go/interfaces" _node "git.lumeweb.com/LumeWeb/libs5-go/node"
"git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/libs5-go/types"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
"go.uber.org/zap" "go.uber.org/zap"
@ -184,7 +184,7 @@ func NewStorageLocationMap() StorageLocationMap {
} }
type StorageLocationProviderImpl struct { type StorageLocationProviderImpl struct {
node interfaces.Node node *_node.Node
hash *encoding.Multihash hash *encoding.Multihash
types []types.StorageLocationType types []types.StorageLocationType
timeoutDuration time.Duration timeoutDuration time.Duration
@ -336,7 +336,7 @@ func (s *StorageLocationProviderImpl) Downvote(uri SignedStorageLocation) error
return nil return nil
} }
func NewStorageLocationProvider(node interfaces.Node, hash *encoding.Multihash, locationTypes ...types.StorageLocationType) StorageLocationProvider { func NewStorageLocationProvider(node *_node.Node, hash *encoding.Multihash, locationTypes ...types.StorageLocationType) StorageLocationProvider {
if locationTypes == nil { if locationTypes == nil {
locationTypes = []types.StorageLocationType{ locationTypes = []types.StorageLocationType{
types.StorageLocationTypeFull, types.StorageLocationTypeFull,