refactor: need a getter for Location
This commit is contained in:
parent
4de11b414f
commit
2341915b8e
|
@ -29,4 +29,5 @@ type StorageLocation interface {
|
||||||
type SignedStorageLocation interface {
|
type SignedStorageLocation interface {
|
||||||
String() string
|
String() string
|
||||||
NodeId() *encoding.NodeId
|
NodeId() *encoding.NodeId
|
||||||
|
Location() StorageLocation
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,6 +123,9 @@ func (ssl *SignedStorageLocationImpl) String() string {
|
||||||
func (ssl *SignedStorageLocationImpl) NodeId() *encoding.NodeId {
|
func (ssl *SignedStorageLocationImpl) NodeId() *encoding.NodeId {
|
||||||
return ssl.nodeID
|
return ssl.nodeID
|
||||||
}
|
}
|
||||||
|
func (ssl *SignedStorageLocationImpl) Location() interfaces.StorageLocation {
|
||||||
|
return ssl.location
|
||||||
|
}
|
||||||
|
|
||||||
func (s *StorageLocationMap) DecodeMsgpack(dec *msgpack.Decoder) error {
|
func (s *StorageLocationMap) DecodeMsgpack(dec *msgpack.Decoder) error {
|
||||||
temp, err := dec.DecodeUntypedMap()
|
temp, err := dec.DecodeUntypedMap()
|
||||||
|
|
Loading…
Reference in New Issue