Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

[SMALLFIX] Java 8 improvement: replace anonymous type with lambda in alluxio/job/client/src/main/java/alluxio/worker/job/RetryHandlingJobMasterClient.java#registerWorker #452

Closed newnius closed 5 years ago

newnius commented 5 years ago

Replace

    return retryRPC(new RpcCallable<Long>() {
      public Long call() {
        return mClient.registerJobWorker(RegisterJobWorkerPRequest.newBuilder()
            .setWorkerNetAddress(GrpcUtils.toProto(address)).build()).getId();
      }
    });

with

    return retryRPC(() -> mClient.registerJobWorker(RegisterJobWorkerPRequest.newBuilder()
        .setWorkerNetAddress(GrpcUtils.toProto(address)).build()).getId());
Matt-Blanco commented 5 years ago

/assign @MBlanco03