Skip to content

Commit

Permalink
MFW-1966 (#57)
Browse files Browse the repository at this point in the history
* MFW-1966

* Type update for all requests.

Co-authored-by: Christian Rasmussen <Christian@rasmussen.org>
  • Loading branch information
rasmussen-untangle and rasmussenc authored Sep 6, 2022
1 parent abf5a9b commit 50787ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/discovery/rpcclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func RequestNetworkScan(args disco.NmapRequest) {
}
defer client.Close()

var reply int
var reply disco.NmapResponse
err = client.Call("DiscoveryRPCService.ScanNet", args, &reply)
if err != nil {
logger.Err("Failed to call DiscoveryRPCService.ScanNet %s\n", err.Error())
Expand All @@ -34,7 +34,7 @@ func RequestHostScan(args disco.NmapRequest) {
}
defer client.Close()

var reply int
var reply disco.NmapResponse
err = client.Call("DiscoveryRPCService.ScanHost", args, &reply)
if err != nil {
logger.Err("Failed to call DiscoveryRPCService.ScanHost %s\n", err.Error())
Expand All @@ -51,7 +51,7 @@ func RequestAllEntries() {
}
defer client.Close()

var reply int
var reply disco.NmapResponse
err = client.Call("DiscoveryRPCService.RequestAllEntries", 0, &reply)
if err != nil {
logger.Err("Failed to call DiscoveryRPCService.RequestAllEntries %s\n", err.Error())
Expand Down

0 comments on commit 50787ae

Please sign in to comment.