File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ pub enum IndexerError {
4646 PluginAlreadyRegistered ,
4747 #[ error( "Invalid certificate content: {0:?}" ) ]
4848 InvalidCertificateValue ( CryptoHash ) ,
49- #[ error( "Clone with root key error" ) ]
50- CloneWithRootKeyError ,
49+ #[ error( "Open exclusive error" ) ]
50+ OpenExclusiveError ,
5151
5252 #[ cfg( feature = "rocksdb" ) ]
5353 #[ error( transparent) ]
Original file line number Diff line number Diff line change 6666 let root_key = "indexer" . as_bytes ( ) . to_vec ( ) ;
6767 let store = store
6868 . open_exclusive ( & root_key)
69- . map_err ( |_e| IndexerError :: CloneWithRootKeyError ) ?;
69+ . map_err ( |_e| IndexerError :: OpenExclusiveError ) ?;
7070 let context = ViewContext :: create_root_context ( store, ( ) )
7171 . await
7272 . map_err ( |e| IndexerError :: ViewError ( e. into ( ) ) ) ?;
Original file line number Diff line number Diff line change 7474 let root_key = name. as_bytes ( ) . to_vec ( ) ;
7575 let store = store
7676 . open_exclusive ( & root_key)
77- . map_err ( |_e| IndexerError :: CloneWithRootKeyError ) ?;
77+ . map_err ( |_e| IndexerError :: OpenExclusiveError ) ?;
7878 let context = ViewContext :: create_root_context ( store, ( ) )
7979 . await
8080 . map_err ( |e| IndexerError :: ViewError ( e. into ( ) ) ) ?;
You can’t perform that action at this time.
0 commit comments