Skip to content

Commit

Permalink
Merge pull request #929 from ersonp/fix/GetPersistentTransports
Browse files Browse the repository at this point in the history
Fix GetPersistentTransports
  • Loading branch information
jdknives authored Oct 13, 2021
2 parents 46c3c9b + fa6e638 commit 80bc94f
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 80bc94f

Please sign in to comment.