@@ -56,7 +56,6 @@ func payment_example(setup *util.Setup) {
56
56
adjBob := setup .GetAdjudicators ()[1 ]
57
57
58
58
log .Println ("Initializing a connection between Alice and Bob" )
59
- bus := wire .NewLocalBus ()
60
59
61
60
aliceWireAcc := p2p .NewRandomAccount (rand .New (rand .NewSource (time .Now ().UnixNano ())))
62
61
aliceNet , err := p2p .NewP2PBus (types .StellarBackendID , aliceWireAcc )
@@ -79,11 +78,11 @@ func payment_example(setup *util.Setup) {
79
78
aliceNet .Dialer .Register (map [wallet.BackendID ]wire.Address {types .StellarBackendID : bobWireAcc .Address ()}, bobWireAcc .ID ().String ())
80
79
81
80
log .Println ("Setup payment clients for Alice and Bob" )
82
- alicePerun , err := client .SetupPaymentClient (wAlice , accAlice , aliceWireAcc .Address (), setup .GetTokenAsset (), bus , funderAlice , adjAlice )
81
+ alicePerun , err := client .SetupPaymentClient (wAlice , accAlice , aliceWireAcc .Address (), setup .GetTokenAsset (), aliceBus , funderAlice , adjAlice )
83
82
if err != nil {
84
83
panic (err )
85
84
}
86
- bobPerun , err := client .SetupPaymentClient (wBob , accBob , bobWireAcc .Address (), setup .GetTokenAsset (), bus , funderBob , adjBob )
85
+ bobPerun , err := client .SetupPaymentClient (wBob , accBob , bobWireAcc .Address (), setup .GetTokenAsset (), bobBus , funderBob , adjBob )
87
86
if err != nil {
88
87
panic (err )
89
88
}
0 commit comments