Skip to content

Commit

Permalink
Fix GetPersistentTransports
Browse files Browse the repository at this point in the history
The commit contains fix for the rpc func GetPersistentTransports to return the required struct.
  • Loading branch information
ersonp committed Oct 13, 2021
1 parent eecc219 commit fa6e638
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/visor/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,12 @@ func (r *RPC) SetMinHops(n *uint16, _ *struct{}) (err error) {
}

// GetPersistentTransports gets persistent_transports from visor's routing config
func (r *RPC) GetPersistentTransports(n *uint16, _ *struct{}) (pTs []transport.PersistentTransports, err error) {
defer rpcutil.LogCall(r.log, "GetPersistentTransports", *n)
pTs, err = r.visor.GetPersistentTransports()
return pTs, err
func (r *RPC) GetPersistentTransports(_ *struct{}, out *[]transport.PersistentTransports) (err error) {
defer rpcutil.LogCall(r.log, "GetPersistentTransports", nil)(out, &err)

pTs, err := r.visor.GetPersistentTransports()
*out = pTs
return err
}

// SetPersistentTransports sets persistent_transports in visor's routing config
Expand Down

0 comments on commit fa6e638

Please sign in to comment.