1
0

[MINOR] The collection can use forEach() directly (#3016)

This commit is contained in:
Wei
2021-05-31 18:52:30 +08:00
committed by GitHub
parent 34ab756a40
commit 219b92c8ae

View File

@@ -203,7 +203,7 @@ public class HoodieHeartbeatClient implements AutoCloseable, Serializable {
* @throws HoodieException
*/
public void stop() throws HoodieException {
instantToHeartbeatMap.values().stream().forEach(heartbeat -> stop(heartbeat.getInstantTime()));
instantToHeartbeatMap.values().forEach(heartbeat -> stop(heartbeat.getInstantTime()));
}
public static Long getLastHeartbeatTime(FileSystem fs, String basePath, String instantTime) throws IOException {