On Monday 08 December 2008 13:42, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-12-08 13:42:35 +0000 (Mon, 08 Dec 2008)
> New Revision: 24129
> 
> Modified:
>    trunk/plugins/XMLSpider/XMLSpider.java
> Log:
> comment invalid code
> 
> Modified: trunk/plugins/XMLSpider/XMLSpider.java
> ===================================================================
> --- trunk/plugins/XMLSpider/XMLSpider.java    2008-12-08 13:36:06 UTC (rev 
24128)
> +++ trunk/plugins/XMLSpider/XMLSpider.java    2008-12-08 13:42:35 UTC (rev 
24129)
> @@ -1323,8 +1323,14 @@
>  
>       public void onFoundEdition(long l, USK key){
>               FreenetURI uri = key.getURI();
> +             /*-
> +              * FIXME this code don't make sense 
> +              *  (1) runningFetchesByURI contain SSK, not USK
> +              *  (2) onFoundEdition always have the edition set
> +              *  
>               if(runningFetchesByURI.containsKey(uri)) 
> runningFetchesByURI.remove(uri);
>               uri = key.getURI().setSuggestedEdition(l);

Ok so the answer is to call getSSK(edition) rather than 
getURI().setSuggestedEdition(edition). Just queueing the USK is wrong.

> +              */
>               queueURI(uri);
>       }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081209/a0b7027d/attachment.pgp>

Reply via email to