Skip to content

Commit

Permalink
Coded dht storage getImmutableItem
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Feb 19, 2016
1 parent 1a7ea6e commit 128e766
Showing 1 changed file with 2 additions and 5 deletions.
@@ -1,9 +1,6 @@
package com.frostwire.jlibtorrent.plugins;

import com.frostwire.jlibtorrent.Address;
import com.frostwire.jlibtorrent.DhtSettings;
import com.frostwire.jlibtorrent.Sha1Hash;
import com.frostwire.jlibtorrent.TcpEndpoint;
import com.frostwire.jlibtorrent.*;
import com.frostwire.jlibtorrent.swig.*;

import java.util.*;
Expand Down Expand Up @@ -153,7 +150,7 @@ public boolean getImmutableItem(Sha1Hash target, entry item) {
return false;
}

//item.set("v", = bdecode(i->second.value, i->second.value + i->second.size);
item.set("v", entry.bdecode(Vectors.bytes2byte_vector(i.value)));
return true;
}

Expand Down

0 comments on commit 128e766

Please sign in to comment.