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

Jose dale branch #17

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Jose dale branch #17

wants to merge 24 commits into from

Conversation

quantdale
Copy link
Collaborator

@quantdale quantdale commented Feb 24, 2025

modified proto

@tituscarl
Copy link
Collaborator

tituscarl commented Feb 24, 2025

Please update your branch to sync the latest changes from main.

@@ -0,0 +1,123 @@
package main
Copy link
Collaborator

Choose a reason for hiding this comment

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

If possible please reuse the one in our testclient.go and add your entry there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please try not to commit binaries.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't create another server, we have already a server on main.go

server/server Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please try not to commit a binary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good morning sir, we would like to retract this pull request, sorry for the inconvenience

Copy link
Collaborator

Choose a reason for hiding this comment

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

Use this testclient for testing purposes.

grpcServer := grpc.NewServer()

// Register the TopicService
topicService := &topic.TopicService{SpannerClient: client}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't create another service.

"context"
"log"
"net"
topic "tidy/crud-topic"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please check import tidy/crud-topic not sure whether this the correct way.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the gRPC handlers? if so, please move this to our server.go

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same on the file above, please move this to server.go


stmt := spanner.Statement{
SQL: "INSERT INTO Subscriptions (subscriptionID, TopciID) VALUES (@id, @topic_id)",
Params: map[string]interface{}{"subscriptionID": req.id, "TopicID": *&req.TopicId},
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use spanner.Insert, please check other codes for reference.

Comment on lines 86 to 95










Copy link
Collaborator

Choose a reason for hiding this comment

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

Please check empty spaces.

@d4rkpunk69
Copy link
Collaborator

Noted everything sir. Will do first thing tommorow. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants