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

Removed lifetime from transaction #41

Conversation

rakshith-ravi
Copy link
Contributor

Transactions don't really require a lifetime anyway, since Client can be cloned easily. This would make the API surface simpler and make it easier to use a Transaction as a struct field, in order to pass it as state to functions

@rakshith-ravi
Copy link
Contributor Author

I was able to run the tests, but certain tests seem to fail, and I'm honestly not sure why. So any help on that would be appreciated

@mcatanzariti
Copy link
Member

Hi @rakshith-ravi

Thank you for your contribution!
Can you please undo changes on docker compose and dockerfiles from the PR?

Cheers,

Michaël

@rakshith-ravi
Copy link
Contributor Author

Hi Michaël,

The changes on the PR for the Dockerfiles are intentional. The permissions on the files have been changed to 755 themselves, which would remove the need for setting permissions on the Dockerfile. One of the reasons that I did this was because older version of docker (specifically, I'm running the latest docker engine supported by Ubuntu LTS) does not support the --chmod directive.

As for docker compose -> docker-compose, a lot of distros (again, I'm running the latest supported by Ubuntu LTS - Maybe it's time to shift to NixOS?) ship older versions of compose, which is a separate command (docker-compose) instead of the new compose, which is a sub-command of docker. However, do note from here: https://docs.docker.com/compose/migrate/#what-does-this-mean-for-my-projects-that-use-compose-v1

However, Docker Desktop continues to support a docker-compose alias to redirect commands to docker compose for convenience and improved compatibility with third-party tools and scripts

This should ideally mean that docker-compose should work for both older and newer users.

Hope this helps.

Regards,
Rakshith Ravi

@mcatanzariti
Copy link
Member

Hi @rakshith-ravi,

Fair enough!
In this case it should be part of an initial and separated PR

Cheers,

Michaël

@rakshith-ravi
Copy link
Contributor Author

Ahh, right. That makes sense. I'll rebase this PR and push the other changes separately :D

@rakshith-ravi rakshith-ravi force-pushed the feature/remove-transaction-lifetime branch from 25d86d8 to 73816d0 Compare August 23, 2023 06:41
@rakshith-ravi
Copy link
Contributor Author

Yup. Rebased. I'll open a subsequent PR that will be on top of this

@rakshith-ravi
Copy link
Contributor Author

Hi @mcatanzariti. Did you get a chance to take a look at this PR?

@mcatanzariti
Copy link
Member

Not yet, sorry.
I have to find time to fix automated tests firsts

@mcatanzariti mcatanzariti merged commit 9549e77 into dahomey-technologies:main Sep 3, 2023
2 of 3 checks passed
@rakshith-ravi rakshith-ravi deleted the feature/remove-transaction-lifetime branch April 25, 2024 20:45
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.

2 participants