aboutsummaryrefslogtreecommitdiff
path: root/api/external_services.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/external_services.go')
-rw-r--r--api/external_services.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/external_services.go b/api/external_services.go
index c467171..41f4d87 100644
--- a/api/external_services.go
+++ b/api/external_services.go
@@ -7,8 +7,8 @@ import (
7) 7)
8 8
9// Use this to call external services. It will handle timeout and request cancellation gracefully. 9// Use this to call external services. It will handle timeout and request cancellation gracefully.
10func CallExternalService(tag string, timeout time.Duration, routine func() *Error) *Error { 10func CallExternalService(tag string, timeout time.Duration, routine func() error) error {
11 routineDone := make(chan *Error) 11 routineDone := make(chan error)
12 12
13 go func() { 13 go func() {
14 routineDone <- routine() 14 routineDone <- routine()