Skip to content

Commit

Permalink
Fixes actor metadata information in dashboard (#239)
Browse files Browse the repository at this point in the history
* fixes actor metadata information

Signed-off-by: Bernd Verst <[email protected]>

* upgrade insecure dependencies

Signed-off-by: Bernd Verst <[email protected]>

---------

Signed-off-by: Bernd Verst <[email protected]>
  • Loading branch information
berndverst authored Feb 7, 2023
1 parent d724dcd commit e741698
Show file tree
Hide file tree
Showing 2 changed files with 1,644 additions and 1,308 deletions.
6 changes: 2 additions & 4 deletions pkg/instances/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strconv"
Expand Down Expand Up @@ -379,8 +378,7 @@ func (i *instances) GetMetadata(scope string, id string) MetadataOutput {
url = append(url, fmt.Sprintf("http://localhost:%v/v1.0/metadata", port))
}
if len(url) != 0 {
data := getMetadataOutputFromURLs(url[0], secondaryUrl[0])

data := getMetadataOutputFromURLs(url[0], "")
if len(url) > 1 {
// merge the actor metadata from the other replicas

Expand Down Expand Up @@ -422,7 +420,7 @@ func getMetadataOutputFromURLs(primaryURL string, secondaryURL string) MetadataO
}
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Println(err)
return MetadataOutput{}
Expand Down
Loading

0 comments on commit e741698

Please sign in to comment.