Skip to content

Commit d051ed5

Browse files
committed
remove constructor with ttl only
1 parent fd84753 commit d051ed5

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/main/java/com/wego/httpcache/services/factories/AsyncHttpServiceFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
import com.wego.httpcache.services.AsyncHttpCacheService;
55

66
public interface AsyncHttpServiceFactory {
7-
AsyncHttpCacheService create(long ttl);
8-
97
AsyncHttpCacheService create(AsyncHttpClient asyncHttpClient, long ttl);
108
}

src/main/java/com/wego/httpcache/services/impl/AsyncHttpCacheServiceImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public class AsyncHttpCacheServiceImpl implements AsyncHttpCacheService {
2222

2323
private long ttl;
2424

25-
@Inject
26-
public AsyncHttpCacheServiceImpl(@Assisted long ttl) {}
27-
2825
@Inject
2926
public AsyncHttpCacheServiceImpl(@Assisted AsyncHttpClient asyncHttpClient, @Assisted long ttl) {
3027
this.asyncHttpClient = asyncHttpClient;

0 commit comments

Comments
 (0)