Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Apr 9, 2024
1 parent 46a0b0d commit b3e3217
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provider/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package provider

import (
"context"
"encoding/json"
"fmt"
"log"
"math/rand"
"net"
"os"
"sync"
"time"

Expand Down Expand Up @@ -265,6 +267,12 @@ func (s *server) GetDependencies(ctx context.Context, in *libgrpc.ServiceRequest
fileDeps = append(fileDeps, &fd)
}

if content, err := json.MarshalIndent(&fileDeps, " ", " "); err == nil {
if f, err := os.CreateTemp("/tmp/debug-rpc", ""); err == nil {
f.Write(content)
}
}

return &libgrpc.DependencyResponse{
Successful: true,
FileDep: fileDeps,
Expand Down

0 comments on commit b3e3217

Please sign in to comment.