From 299b6b6d9fb879c06e675ef240f361348629ff6c Mon Sep 17 00:00:00 2001 From: jloup Date: Thu, 10 May 2018 16:22:29 +0200 Subject: Add column 'status' to market_configs. --- api/external_services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/external_services.go') 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 ( ) // Use this to call external services. It will handle timeout and request cancellation gracefully. -func CallExternalService(tag string, timeout time.Duration, routine func() *Error) *Error { - routineDone := make(chan *Error) +func CallExternalService(tag string, timeout time.Duration, routine func() error) error { + routineDone := make(chan error) go func() { routineDone <- routine() -- cgit v1.2.3