Skip to content

Commit 49a100b

Browse files
committed
use map
1 parent 29aa32a commit 49a100b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internals/discovery/discovery.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ func GetAliveDiscovery() Diff[string] {
7676
func SendDiff(serverName, endpoint, key string, diff Diff[string]) (*http.Response, error) {
7777
payload := map[string]any{
7878
"serverName": serverName,
79-
"diff": diff,
79+
"diff": map[string]any{
80+
"added": diff.Added,
81+
"removed": diff.Removed,
82+
},
8083
}
8184

8285
data, err := jsonutils.ToJsonSafe(payload)

0 commit comments

Comments
 (0)