]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/blobdiff - api/external_services.go
Add column 'status' to market_configs.
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git] / api / external_services.go
index c467171d275002768f9fc03dbdf26880eeed9bd4..41f4d872381cfe9fd3dab1eb58992508f9ead21e 100644 (file)
@@ -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()