| 150 | return nil |
| 151 | } |
| 152 | |
| 153 | type DB struct { |
| 154 | path string |
| 155 | |
| 156 | cfg *config.LevelDBConfig |
| 157 | |
| 158 | localDB *leveldb.DB |
| 159 | opts *opt.Options |
| 160 | |
| 161 | iteratorOpts *opt.ReadOptions |
| 162 | syncOpts *opt.WriteOptions |
| 163 | |
| 164 | cache *ristretto.Cache |
| 165 | filter filter.Filter |
| 166 | remoteShell *shell.Shell |
| 167 | encryptionKey []byte |
| 168 | |
| 169 | ctx context.Context |
| 170 | ipfsDB *levelkv.LevelKV |
| 171 | ipfsLog *iflog.IpfsLog |
| 172 | ipfsNode *core.IpfsNode // Stores the IPFS node returned by iflog.CreateNode() |
| 173 | logger *zap.Logger |
| 174 | |
| 175 | // For decentralized consistency |
| 176 | peerID peer.ID |
| 177 | versionMu sync.RWMutex |
| 178 | versions map[string]uint64 // Key to version counter |
| 179 | } |
| 180 | |
| 181 | func (s *DB) GetStorageEngine() interface{} { |
nothing calls this directly
no outgoing calls
no test coverage detected