Skip to content

Commit

Permalink
quick clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrdtales authored and Tobias Gurtzick committed Mar 21, 2017
1 parent 99a4b7d commit c5f5840
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ By default, it provides a round-robin strategy that will work in the majority of
Visigoth allows you to customize the strategy for choosing the healthiest target
by evaluating the statistics recorded by previous calls to the same target:

```
```javascript
function rater(upstream) {
var responseTime = upstream.meta$.stats.responseTime;
if(typeof responseTime !== 'undefined') {
Expand Down
13 changes: 13 additions & 0 deletions examples/econ-refused/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "visigoth-econ-refused-example",
"version": "1.0.0",
"description": "",
"private": true,
"main": "econ-refused.js",
"author": "",
"license": "ISC",
"dependencies": {
"async": "^2.1.5",
"request": "^2.79.0"
}
}
12 changes: 12 additions & 0 deletions examples/low-response-time/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "visigoth-low-latency-example",
"version": "1.0.0",
"description": "",
"private": true,
"main": "low-latency.js",
"author": "",
"license": "ISC",
"dependencies": {
"async": "^2.1.5"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"homepage": "https://github.com/dgonzalez/visigoth",
"dependencies": {
"assertion-error": "^1.0.1",
"async": "^2.0.0-rc.3",
"chai": "^3.5.0",
"deep-eql": "^0.1.3",
"lodash": "^4.2.1",
"mocha": "^2.4.5",
"request": "^2.72.0",
"sinon": "^1.17.3",
"type-detect": "^1.0.0"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^2.5.3",
"sinon": "^1.17.7"
}
}

0 comments on commit c5f5840

Please sign in to comment.