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

service trait takes shared self reference #247

Merged
merged 6 commits into from
Jan 23, 2021
Merged

service trait takes shared self reference #247

merged 6 commits into from
Jan 23, 2021

Conversation

fakeshadow
Copy link
Contributor

@fakeshadow fakeshadow commented Jan 14, 2021

PR Type

Refactor

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

In general actix-web does not need mutable service state to run.
This PR make Service trait take immutable reference of service state.

@fakeshadow fakeshadow mentioned this pull request Jan 16, 2021
3 tasks
@robjtede robjtede changed the title Feat/immutable service trait takes shared self reference Jan 23, 2021
@robjtede robjtede merged commit 636cef8 into master Jan 23, 2021
@robjtede robjtede deleted the feat/immutable branch January 23, 2021 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Actix server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants