-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configs and Log Refractor #53
base: master
Are you sure you want to change the base?
Configs and Log Refractor #53
Conversation
@lucifercr07, I have implemented the configs refractor and also added a logging package. I was not entirely sure about the logging package. Happy to hear your suggestions and comments on changing anything. |
@@ -7,8 +7,7 @@ import ( | |||
|
|||
// Updated enableCors function to return a boolean indicating if OPTIONS was handled | |||
func handleCors(w http.ResponseWriter, r *http.Request) bool { | |||
configValue := config.LoadConfig() | |||
allAllowedOrigins := configValue.Server.AllowedOrigins | |||
allAllowedOrigins := config.AppConfig.Server.AllowedOrigins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why linter is failing here even though the config.LoadConfig is changed here..getting linter error where this function is called in internal/middleware/ratelimiter.go
@srivastava-yash can you please fix the build and lint issue. |
Sorry for the delay on this @lucifercr07 , I was traveling. When I am running the lint command locally, I am not getting any errors. I am not sure why linter is failing, I had mentioned this in a comment earlier as well. I will try to debug this. |
Closes #44