From 17b3a450b23cc06cc919b160cf272094d216ecf9 Mon Sep 17 00:00:00 2001 From: joshemb <josh@elixxir.io> Date: Thu, 4 Aug 2022 15:46:58 -0700 Subject: [PATCH] Fix return values GetNodeRegistrationStatus --- bindings/follow.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bindings/follow.go b/bindings/follow.go index 14dc9e9aa..e676d5060 100644 --- a/bindings/follow.go +++ b/bindings/follow.go @@ -95,11 +95,14 @@ func (c *Cmix) NetworkFollowerStatus() int { // GetNodeRegistrationStatus returns the current state of node registration. // // Returns: -// - The number of nodes with which the user is registered. -// - The number of nodes present in the NDF. +// - []int - The 0th element represents the number of nodes with which the user is registered. +// The 1st element represents the number of nodes present in the NDF. // - An error will most likely occur if the network is unhealthy. -func (c *Cmix) GetNodeRegistrationStatus() (int, int, error) { - return c.api.GetNodeRegistrationStatus() +func (c *Cmix) GetNodeRegistrationStatus() ([]int, error) { + results := make([]int, 2) + var err error + results[0], results[1], err = c.api.GetNodeRegistrationStatus() + return results, err } // HasRunningProcessies checks if any background threads are running and returns -- GitLab