File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -154,19 +154,6 @@ def stat(self, **kwargs):
154
154
return self ._client .request ('/bitswap/stat' , decoder = 'json' , ** kwargs )
155
155
156
156
157
- def unwant (self , key , ** kwargs ):
158
- """
159
- Remove a given block from wantlist.
160
-
161
- Parameters
162
- ----------
163
- key : str
164
- Key to remove from wantlist.
165
- """
166
- args = (key ,)
167
- return self ._client .request ('/bitswap/unwant' , args , ** kwargs )
168
-
169
-
170
157
171
158
class DHTSection (base .SectionBase ):
172
159
def findpeer (self , peer_id , * peer_ids , ** kwargs ):
@@ -770,7 +757,6 @@ class NetworkBase(base.ClientBase):
770
757
771
758
bitswap_stat = base .DeprecatedMethodProperty ("bitswap" , "stat" )
772
759
bitswap_wantlist = base .DeprecatedMethodProperty ("bitswap" , "wantlist" )
773
- bitswap_unwant = base .DeprecatedMethodProperty ("bitswap" , "unwant" )
774
760
775
761
dht_findpeer = base .DeprecatedMethodProperty ("dht" , "findpeer" )
776
762
dht_findprovs = base .DeprecatedMethodProperty ("dht" , "findproves" )
Original file line number Diff line number Diff line change @@ -833,15 +833,6 @@ def test_bitswap_stat(self):
833
833
result = self .api .bitswap_stat ()
834
834
self .assertTrue (result and type (result ) is dict and 'Wantlist' in result )
835
835
836
- def test_bitswap_unwant (self ):
837
- """
838
- Cannot ensure what is present in the wantlist prior to execution, so just ensure
839
- something comes back.
840
- """
841
-
842
- result = self .api .bitswap_unwant (key = 'QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V' )
843
- self .assertTrue (result is not None )
844
-
845
836
@skipIfOffline ()
846
837
class IpfsApiPubSubTest (unittest .TestCase ):
847
838
You can’t perform that action at this time.
0 commit comments