Skip to content

Commit

Permalink
Fix: Remove unrequired function
Browse files Browse the repository at this point in the history
  • Loading branch information
lpoli committed Aug 1, 2021
1 parent 21d3af8 commit 937c196
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions code/go/0chain.net/blobbercore/handler/helper.go
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
package handler

import (
"context"
"time"

"github.com/0chain/blobber/code/go/0chain.net/blobbercore/blobbergrpc"
"github.com/0chain/blobber/code/go/0chain.net/core/common"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/grpc"
)

func registerGRPCServices(r *mux.Router, server *grpc.Server) {
blobberService := newGRPCBlobberService()
grpcGatewayHandler := runtime.NewServeMux()

blobbergrpc.RegisterBlobberServer(server, blobberService)
_ = blobbergrpc.RegisterBlobberHandlerServer(context.Background(), grpcGatewayHandler, blobberService)
r.PathPrefix("/").Handler(grpcGatewayHandler)

}

func checkValidDate(s string) error {
if s != "" {
_, err := time.Parse("2006-01-02 15:04:05.999999999", s)
Expand Down

0 comments on commit 937c196

Please sign in to comment.