adjust self
This commit is contained in:
@@ -65,8 +65,9 @@ const (
|
||||
NATIVE_TOOL = tools.NATIVE_TOOL
|
||||
)
|
||||
|
||||
func GetMySelf() (string, error) {
|
||||
return utils.GetMySelf((&peer.Peer{}).GetAccessor(&tools.APIRequest{Admin: true}))
|
||||
func GetMySelf() (*peer.Peer, error) {
|
||||
pp, err := utils.GetMySelf((&peer.Peer{}).GetAccessor(&tools.APIRequest{Admin: true}))
|
||||
return pp.(*peer.Peer), err
|
||||
}
|
||||
|
||||
func IsMySelf(peerID string) (bool, string) {
|
||||
|
||||
Reference in New Issue
Block a user