Skip to content
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

Draft ancla provide #526

Merged
merged 5 commits into from
Aug 13, 2024
Merged

Conversation

maurafortino
Copy link
Contributor

What's Included:

  • removed creation of the ancla ListenerConfig and the ancla Service
  • Added provide functions (from ancla) for the ancla ListenerConfig and ancla Service

}

func InitializeAncla(lifecycle fx.Lifecycle) fx.Option {
return fx.Provide(
func(in AnclaListenerIn) ancla.ListenerConfig {
Copy link
Contributor Author

@maurafortino maurafortino Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


func getLogger(ctx context.Context) *zap.Logger {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -141,6 +141,7 @@ func (sh *ServerHandler) ServeHTTP(response http.ResponseWriter, request *http.R
sh.handleRequest(sh.fixWrp(msg))

// return a 202
//TODO: do we need to add error handling because i'm getting this response even when event had not been placed on queue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends how the code is setup...

for now a 202 is valid since the server [has] received the HTTP request and intends to process it (the meaning of 202) even tho it may fail in the down stream logic

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth to make a note and come back

Copy link
Contributor

@denopink denopink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@maurafortino maurafortino merged commit 9259736 into denopink/feat/rewrite Aug 13, 2024
10 of 13 checks passed
@maurafortino maurafortino deleted the draft-ancla-provide branch August 13, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants