@@ -72,7 +72,7 @@ class ContentRouting {
72
72
* @param {CID } key - The CID key of the content to find
73
73
* @returns {Promise<void[]> }
74
74
*/
75
- async provide ( key ) { // eslint-disable-line require-await
75
+ provide ( key ) {
76
76
if ( ! this . routers . length ) {
77
77
throw errCode ( new Error ( 'No content routers available' ) , 'NO_ROUTERS_AVAILABLE' )
78
78
}
@@ -89,7 +89,7 @@ class ContentRouting {
89
89
* @param {number } [options.minPeers] - minimum number of peers required to successfully put
90
90
* @returns {Promise<void> }
91
91
*/
92
- async put ( key , value , options ) { // eslint-disable-line require-await
92
+ put ( key , value , options ) {
93
93
if ( ! this . libp2p . isStarted ( ) || ! this . dht . isStarted ) {
94
94
throw errCode ( new Error ( messages . NOT_STARTED_YET ) , codes . DHT_NOT_STARTED )
95
95
}
@@ -106,7 +106,7 @@ class ContentRouting {
106
106
* @param {number } [options.timeout] - optional timeout (default: 60000)
107
107
* @returns {Promise<GetData> }
108
108
*/
109
- async get ( key , options ) { // eslint-disable-line require-await
109
+ get ( key , options ) {
110
110
if ( ! this . libp2p . isStarted ( ) || ! this . dht . isStarted ) {
111
111
throw errCode ( new Error ( messages . NOT_STARTED_YET ) , codes . DHT_NOT_STARTED )
112
112
}
0 commit comments