Last active
August 18, 2021 04:47
-
-
Save daneshk/9addee709809cc017c8ff0a6816111e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service "RouteGuide" on new grpc:Listener(8980) { | |
remote function GetFeature(Point point) returns Feature|error { | |
foreach Feature feature in FEATURES { | |
if feature.location == point { | |
return feature; | |
} | |
} | |
return {location: point, name: ""}; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment