Skip to content

Comments

tower: prepare to release 0.4.11#618

Merged
davidpdrsn merged 5 commits intomasterfrom
tower-0.4.11
Nov 18, 2021
Merged

tower: prepare to release 0.4.11#618
davidpdrsn merged 5 commits intomasterfrom
tower-0.4.11

Conversation

@davidpdrsn
Copy link
Member

@davidpdrsn davidpdrsn commented Nov 18, 2021

Added

  • util: Add BoxCloneService which is a Clone + Send boxed Service (#615)
  • util: Add ServiceExt::boxed and ServiceExt::boxed_clone for applying the
    BoxService and BoxCloneService middleware (#616)
  • builder: Add ServiceBuilder::boxed and ServiceBuilder::boxed_clone for
    applying BoxService and BoxCloneService layers (#616)

Fixed

  • util: Remove redundant F: Clone bound from ServiceExt::map_request (#607)
  • util: Remove unnecessary Debug bounds from impl Debug for BoxService (#617)
  • util: Remove unnecessary Debug bounds from impl Debug for UnsyncBoxService (#617)
  • balance: Remove redundant Req: Clone bound from Clone impls
    for MakeBalance, and MakeBalanceLayer (#607)
  • balance: Remove redundant Req: Debug bound from Debug impls
    for MakeBalance, MakeFuture, Balance, and Pool (#607)
  • ready-cache: Remove redundant Req: Debug bound from Debug impl
    for ReadyCache (#607)
  • steer: Remove redundant Req: Debug bound from Debug impl
    for Steer (#607)
  • docs: Fix doc(cfg(...)) attributes
    of PeakEwmaDiscover, and PendingRequestsDiscover (#610)

Added

- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
  `BoxService` and `CloneBoxService` middleware ([#616])
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::clone_boxed` for
  applying `BoxService` and `CloneBoxService` layers ([#616])

Fixed

- **balance**: Remove redundant `Req: Clone` bound from `Clone` impls
  for `MakeBalance`, and `MakeBalanceLayer` ([#607])
- **balance**: Remove redundant `Req: Debug` bound from `Debug` impls
  for `MakeBalance`, `MakeFuture`, `Balance`, and `Pool` ([#607])
- **ready-cache**: Remove redundant `Req: Debug` bound from `Debug` impl
  for `ReadyCache` ([#607])
- **steer**: Remove redundant `Req: Debug` bound from `Debug` impl
  for `Steer` ([#607])
- **util**: Remove redundant `F: Clone` bound
  from `ServiceExt::map_request` ([#607])
- **docs**: Fix `doc(cfg(...))` attributes
  of `PeakEwmaDiscover`, and `PendingRequestsDiscover` ([#610])
- **util**: Remove unnecessary `Debug` bounds from `impl Debug for BoxService` ([#617])
- **util**: Remove unnecessary `Debug` bounds from `impl Debug for UnsyncBoxService` ([#617])

[#607]: #607
[#610]: #610
[#616]: #616
[#617]: #617
[#615]: #615
@davidpdrsn davidpdrsn requested review from hawkw and olix0r and removed request for hawkw November 18, 2021 14:00
@davidpdrsn davidpdrsn added the T-release Topic: releases label Nov 18, 2021
@davidpdrsn davidpdrsn requested a review from hawkw November 18, 2021 14:00
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
`BoxService` and `CloneBoxService` middleware ([#616])
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::clone_boxed` for
applying `BoxService` and `CloneBoxService` layers ([#616])
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know I should have spotted this in #616, but let me revive the naming question before a release goes out... I think think should be called BoxCloneService (and helper should be boxed_clone). My reasoning is that this makes the type/method names lexically grouped (i.e in documentation or tab completion). When searching I'll see all the Box*Services together.

We can defer this to 0.5, though, I guess, since CloneBoxService is similar to UnsyncBoxService...

Copy link
Member Author

Choose a reason for hiding this comment

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

@hawkw wondered about that too. I don't feel strongly about it, so think I'll just rename it in this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the change notes need to be updated as well, now...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
applying `BoxService` and `CloneBoxService` layers ([#616])
applying `BoxService` and `BoxCloneService` layers ([#616])

Copy link
Member Author

Choose a reason for hiding this comment

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

whoops! Was a bit too quick with the search and replace. Fixed it!

@davidpdrsn davidpdrsn requested a review from olix0r November 18, 2021 18:50

- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
`BoxService` and `CloneBoxService` middleware ([#616])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`BoxService` and `CloneBoxService` middleware ([#616])
`BoxService` and `BoxCloneService` middleware ([#616])


### Added

- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
- **util**: Add `BoxCloneService` which is a `Clone + Send` boxed `Service` ([#615])

- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
`BoxService` and `CloneBoxService` middleware ([#616])
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::clone_boxed` for
applying `BoxService` and `CloneBoxService` layers ([#616])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
applying `BoxService` and `CloneBoxService` layers ([#616])
applying `BoxService` and `BoxCloneService` layers ([#616])

### Added

- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
- **util**: Add `ServiceExt::boxed` and `ServiceExt::boxed_clone` for applying the

- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service` ([#615])
- **util**: Add `ServiceExt::boxed` and `ServiceExt::clone_boxed` for applying the
`BoxService` and `CloneBoxService` middleware ([#616])
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::clone_boxed` for
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::clone_boxed` for
- **builder**: Add `ServiceBuilder::boxed` and `ServiceBuilder::boxed_clone` for

@davidpdrsn davidpdrsn merged commit 7674109 into master Nov 18, 2021
@davidpdrsn davidpdrsn deleted the tower-0.4.11 branch November 18, 2021 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-release Topic: releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants