Using errgroups solved the issue for me , This pattern of error handling is quite complex and should be avoided especially in my case where I just required a early return . I hope this helps .