File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
libs/logstash-bridge/src/main/java/org/elasticsearch/logstashbridge/geoip Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,10 @@ public ProxyInternal(final IpDatabase delegate) {
30
30
public String getDatabaseType () throws IOException {
31
31
return toInternal ().getDatabaseType ();
32
32
}
33
+
34
+ @ Override
35
+ public IpDatabase toInternal () {
36
+ return this .internalDelegate ;
37
+ }
33
38
}
34
39
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ default Boolean isValid(String name) {
26
26
}
27
27
28
28
@ FixForMultiProject (description = "What ProjectId should be resolved for multi-project case?" )
29
- default IpDatabaseBridge getDatabase (String name ) {
29
+ default IpDatabaseBridge . ProxyInternal getDatabase (String name ) {
30
30
return new IpDatabaseBridge .ProxyInternal (toInternal ().getDatabase (ProjectId .DEFAULT , name ));
31
31
}
32
32
@@ -61,12 +61,12 @@ private AbstractExternal getIpDatabaseProviderBridge() {
61
61
62
62
@ Override
63
63
public Boolean isValid (ProjectId projectId , String name ) {
64
- return IpDatabaseProviderBridge .AbstractExternal .this .toInternal (). isValid (projectId , name );
64
+ return IpDatabaseProviderBridge .AbstractExternal .this .isValid (name );
65
65
}
66
66
67
67
@ Override
68
68
public IpDatabase getDatabase (ProjectId projectId , String name ) {
69
- return IpDatabaseProviderBridge .AbstractExternal .this .toInternal (). getDatabase ( projectId , name );
69
+ return IpDatabaseProviderBridge .AbstractExternal .this .getDatabase ( name ). toInternal ( );
70
70
}
71
71
}
72
72
}
You can’t perform that action at this time.
0 commit comments