Skip to content

Commit

Permalink
Shut down remote components in the correct order (caught by a unit te…
Browse files Browse the repository at this point in the history
…st: excellent!).
  • Loading branch information
stuhood committed Aug 28, 2018
1 parent ecee24a commit c3c8afa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/rust/engine/fs/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,10 @@ mod remote {
where
F: FnOnce() -> (),
{
self.channel.with_reset(|| {
self.env.with_reset(|| {
self
.cas_client
.with_reset(|| self.byte_stream_client.with_reset(f))
})
self.cas_client.with_reset(|| {
self
.byte_stream_client
.with_reset(|| self.channel.with_reset(|| self.env.with_reset(f)))
})
}

Expand Down

0 comments on commit c3c8afa

Please sign in to comment.