Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
triptighanghas committed Jun 17, 2024
1 parent 4d35da1 commit 47bd4ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public RpcServer(RpcServerStateListener ssl) {
listeners.add(ssl);
}

public RpcServer(){}

public void startServer(Context context) {
if (state == ServerState.RUNNING || state == ServerState.PENDING) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.grpc.Server;
import io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder;

public class RpcServerWorker extends Worker implements RpcServerStateListener {
public class RpcServerWorker extends Worker{
private RpcServer rpcServer;

public RpcServerWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
Expand All @@ -26,7 +26,7 @@ public RpcServerWorker(@NonNull Context context, @NonNull WorkerParameters worke

private void startRpcServer() {

rpcServer = new RpcServer(this);
rpcServer = new RpcServer();

Log.d(MainActivity.TAG, "start rpc server at:" + rpcServer);
try {
Expand Down Expand Up @@ -56,9 +56,4 @@ public Result doWork() {
startRpcServer();
return Result.success();
}

@Override
public void onStateChanged(RpcServer.ServerState newState) {

}
}

0 comments on commit 47bd4ea

Please sign in to comment.