On Saturday 08 November 2008 11:12, xor at freenetproject.org wrote:
> Author: xor
> Date: 2008-11-08 11:12:50 +0000 (Sat, 08 Nov 2008)
> New Revision: 23417
> 
> Modified:
>    trunk/plugins/WoT/IdentityFetcher.java
> Log:
> Set priority class of fetches.

You should set the priority class in advance, when you obtain the 
HighLevelSimpleClient ... don't you have to specify a priority there?
> 
> Modified: trunk/plugins/WoT/IdentityFetcher.java
> ===================================================================
> --- trunk/plugins/WoT/IdentityFetcher.java    2008-11-08 11:02:28 UTC (rev 
23416)
> +++ trunk/plugins/WoT/IdentityFetcher.java    2008-11-08 11:12:50 UTC (rev 
23417)
> @@ -21,6 +21,7 @@
>  import freenet.client.async.ClientCallback;
>  import freenet.client.async.ClientGetter;
>  import freenet.keys.FreenetURI;
> +import freenet.node.RequestStarter;
>  import freenet.support.Logger;
>  
>  /**
> @@ -92,7 +93,9 @@
>               FetchContext fetchContext = client.getFetchContext();
>               fetchContext.maxSplitfileBlockRetries = -1; // retry forever
>               fetchContext.maxNonSplitfileRetries = -1; // retry forever
> -             requests.add(client.fetch(uri, -1, this, this, fetchContext));
> +             ClientGetter g = client.fetch(uri, -1, this, this, 
> fetchContext);
> +             g.setPriorityClass(RequestStarter.UPDATE_PRIORITY_CLASS); /* 
> FIXME: 
decide which one to use */
> +             requests.add(g);
>               Logger.debug(this, "Start fetching identity "+uri.toString());
>       }
>  
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- 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/20081112/6142b3c5/attachment.pgp>

Reply via email to