doh! I forgot to make sure leveldb is only opened once. thanks for catching this @mappum * You may be wondering why we don't just share pointers to FSRepos. We want to manage the lifecycle of the FSRepo by tracking its `state`. Thus each FSRepo/goroutine requires private instance variables. For this reason, each `fsrepo.At(p)` caller must get its own goroutine. * There's a test in `fsrepo` because callers desire the ability to Open from multiple goroutines. There's a test in `component` because this is where the actual work needs to go in order to provide the desired contract. If the `component` package moves, the assurances need to move along with it. cc @whyrusleeping @jbenet side note: there are a couple packages in FSRepo that it might be worthwhile to extract once the dust settles on this feature-set.
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| Godeps | 正在载入提交数据... | |
| bin | 正在载入提交数据... | |
| blocks | 正在载入提交数据... | |
| blockservice | 正在载入提交数据... | |
| cmd | 正在载入提交数据... | |
| commands | 正在载入提交数据... | |
| core | 正在载入提交数据... | |
| diagnostics | 正在载入提交数据... | |
| exchange | 正在载入提交数据... | |
| fuse | 正在载入提交数据... | |
| importer | 正在载入提交数据... | |
| jenkins | 正在载入提交数据... | |
| merkledag | 正在载入提交数据... | |
| namesys | 正在载入提交数据... | |
| p2p | 正在载入提交数据... | |
| path | 正在载入提交数据... | |
| pin | 正在载入提交数据... | |
| repo | 正在载入提交数据... | |
| routing | 正在载入提交数据... | |
| server/http | 正在载入提交数据... | |
| test | 正在载入提交数据... | |
| tour | 正在载入提交数据... | |
| unixfs | 正在载入提交数据... | |
| updates | 正在载入提交数据... | |
| util | 正在载入提交数据... | |
| .dockerignore | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| .travis.yml | 正在载入提交数据... | |
| Dockerfile | 正在载入提交数据... | |
| LICENSE | 正在载入提交数据... | |
| Makefile | 正在载入提交数据... | |
| README.md | 正在载入提交数据... | |
| dev.md | 正在载入提交数据... | |
| doc.go | 正在载入提交数据... |