Closed rishiloyola closed 6 years ago
Rishi, the PR is incomplete. Either you switch to global AUTH variable everywhere or do not use it. You made a partial switch. For instance, server/handler.go code uses authVar https://github.com/vkuznet/transfer2go/blob/master/server/handlers.go#L28 https://github.com/vkuznet/transfer2go/blob/master/server/handlers.go#L74 https://github.com/vkuznet/transfer2go/blob/master/server/handlers.go#L84 If you need global AUTH, then fix the whole code accordingly and not only sub-parts.
I just want to limit that variable between server and utils package. Shall I rename AUTH
to Auth
or I need to replace authvar
by utils.AUTH
?
Make everything consistent, utils.Auth will fit well and use it everywhere. The Init function can be simplified and no longer need authArg since utils.Auth can be used instead. Then replace authVar in server code with utils.Auth.
On 0, Rishi notifications@github.com wrote:
I just want to limit that variable between server and utils package. Shall I rename
AUTH
toAuth
or I need to replaceauthvar
byutils.AUTH
?-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/vkuznet/transfer2go/pull/58#issuecomment-336641535
@vkuznet made the necessary changes. You can merge this.
I am facing following error while testing the code using run.sh script.
Since given path does not exist it is throwing an error.