Skip to content

Commit 61c28a0

Browse files
committed
refactor on proxypool
1 parent b871b21 commit 61c28a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/proxy/Proxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
*
5252
* @author yxssfxwzy@sina.com <br>
5353
* @since 0.5.1
54-
* @see ProxyPool
54+
* @see SimpleProxyPool
5555
*/
5656

5757
public class Proxy implements Delayed, Serializable {

webmagic-core/src/main/java/us/codecraft/webmagic/proxy/SimpleProxyPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @see Proxy
2323
* @since 0.5.1
2424
*/
25-
public class SimpleProxyPool implements IProxyPool{
25+
public class SimpleProxyPool implements ProxyPool {
2626

2727
private Logger logger = LoggerFactory.getLogger(getClass());
2828

webmagic-core/src/test/java/us/codecraft/webmagic/proxy/ProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void before() {
3030

3131
@Test
3232
public void testProxy() {
33-
ProxyPool proxyPool = new ProxyPool(httpProxyList);
33+
SimpleProxyPool proxyPool = new SimpleProxyPool(httpProxyList);
3434
proxyPool.setReuseInterval(500);
3535
assertThat(proxyPool.getIdleNum()).isEqualTo(4);
3636
assertThat(new File(proxyPool.getProxyFilePath()).exists()).isEqualTo(true);

0 commit comments

Comments
 (0)