Commit ea25afa4464d1c2785f2e0f8e88045b24021891d
GREETINGS
Tree committed on 12/14/2016, 5:35:23 AMParent: cea37bb07519a0522556a3f190e854b8943fb367
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -15,9 +15,9 @@ | ||
15 | 15 … | anonymous: ['public.greet'] |
16 | 16 … | }, |
17 | 17 … | init: function(api, opts){ |
18 | 18 … | return { |
19 | - 'public.greet': function(arg, cb){ | |
19 … | + 'greet': function(cb){ | |
20 | 20 … | cb(null, 'GREETINGS') |
21 | 21 … | } |
22 | 22 … | } |
23 | 23 … | } |
@@ -41,9 +41,9 @@ | ||
41 | 41 … | if(service.host === node.getAddress()) return |
42 | 42 … | else{ |
43 | 43 … | node.connect(service.host, function(err, rpc){ |
44 | 44 … | console.log(err, rpc) |
45 | - rpc.spot.greet(function(greets){ | |
45 … | + rpc.spot.greet(function(err, greets){ | |
46 | 46 … | console.log(greets) |
47 | 47 … | }) |
48 | 48 … | }) |
49 | 49 … | } |
Built with git-ssb-web