Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Replace assets map Mutex with a RWMutex #1146

Merged
merged 1 commit into from
Jun 28, 2018

Conversation

stanislas-m
Copy link
Member

Once the assets map is loaded, it shouldn't change often. So, soften the read
access makes sense (and won't block rendering).

Once the assets map is loaded, it shouldn't change often. So, soften the read
access makes sense (and won't block rendering).
@codecov
Copy link

codecov bot commented Jun 28, 2018

Codecov Report

Merging #1146 into development will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1146      +/-   ##
===============================================
- Coverage        50.68%   50.67%   -0.02%     
===============================================
  Files               74       74              
  Lines             3796     3795       -1     
===============================================
- Hits              1924     1923       -1     
  Misses            1755     1755              
  Partials           117      117
Impacted Files Coverage Δ
render/template_helpers.go 95% <100%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bf77ff...ee4bcba. Read the comment docs.

@markbates markbates merged commit 69cba61 into development Jun 28, 2018
@markbates markbates deleted the task/read-mutex-assets-map branch June 28, 2018 14:38
@markbates markbates added this to the v0.12.4 milestone Jun 28, 2018
markbates pushed a commit that referenced this pull request Jul 4, 2018
Once the assets map is loaded, it shouldn't change often. So, soften the read
access makes sense (and won't block rendering).
markbates added a commit that referenced this pull request Jul 15, 2018
* Migrate server.go logger to the app one instead of logrus (#1107)

* upgraded the default node-sass to work on node 10 (#1108)

* vgo

* Add txt for templates (#1117)

Had `text` now can do the same thing for `txt`

* keep toml simple

* remove whitespace in webpack.config.js (#1120)

* removed packr files rebase

* fix contrib guide list (#1129)

* Make the --config flag of *buffalo new* command use the config file (#1119)

* Make the --config flag of *buffalo new* command use the config file

* Remove dead code

* Add --skip-config flag and error if can't use the file passed to --config

* Add example to README

* added godoc documentation for tokenauth usage (#1060)

* Adding "BUFFALO_PLUGIN_TIMEOUT" option. (#1104)

* Adding "BUFFALO_PLUGIN_TIMEOUT" option.

Doing so lets users configure how long buffalo will wait while trying to
load a plugin. In particular, this is helping on my box where security
policies are setup in a manner that frequently has plugins taking 1.5
seconds to load.

Fixes #1103

* Refactoring to be more idiomatic/testable.

Also adding a test.

* Updating documenation

* Fixing typo

* Formatting test file.

* Taking advantage of testify

* Improving error message

* fixes a regress bootstrap version (#1143)

* Replace assets map Mutex with a RWMutex (#1146)

Once the assets map is loaded, it shouldn't change often. So, soften the read
access makes sense (and won't block rendering).

* automatically respond with a 404 if error is sql.ErrNoRows
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants