gifs/api
2014-10-17
Parent:08ec88016e2f
gifs/api/LICENSE
Simplify upload. Simplify the upload code by not running the hashing async, which requires fewer copy operations and less channel synchronization. Also, take advantage of the fact that PipeWriters and PipeReaders will return an error to the PipeReaders/PipeWriters (respectively) when read/write is called (respectively) to avoid passing back errors through channels.
| paddy@0 | 1 The MIT License (MIT) |
| paddy@0 | 2 |
| paddy@0 | 3 Copyright (c) 2014 Second Bit, LLC |
| paddy@0 | 4 |
| paddy@0 | 5 Permission is hereby granted, free of charge, to any person obtaining a copy of |
| paddy@0 | 6 this software and associated documentation files (the "Software"), to deal in |
| paddy@0 | 7 the Software without restriction, including without limitation the rights to |
| paddy@0 | 8 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
| paddy@0 | 9 the Software, and to permit persons to whom the Software is furnished to do so, |
| paddy@0 | 10 subject to the following conditions: |
| paddy@0 | 11 |
| paddy@0 | 12 The above copyright notice and this permission notice shall be included in all |
| paddy@0 | 13 copies or substantial portions of the Software. |
| paddy@0 | 14 |
| paddy@0 | 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| paddy@0 | 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| paddy@0 | 17 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
| paddy@0 | 18 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
| paddy@0 | 19 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| paddy@0 | 20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |