Skip to content

Commit

Permalink
Formatting code using go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef committed Oct 17, 2020
1 parent 5b8376e commit cd1649f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/reciever.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"encoding/gob"
"fmt"
"io"
"os"
"log"
"os"

"github.com/arisetransfer/arise/proto"
"github.com/arisetransfer/arise/utils"
Expand Down
6 changes: 3 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func (s *Server) GetSenderInfo(ctx context.Context, request *proto.Code) (*proto

func (s *Server) GetPublicKey(ctx context.Context, request *proto.Code) (*proto.PublicKey, error) {
for {
time.Sleep(1*time.Second)
if val,ok := recieverPublicKey[request.Code];ok{
return &proto.PublicKey{Key: val},nil
time.Sleep(1 * time.Second)
if val, ok := recieverPublicKey[request.Code]; ok {
return &proto.PublicKey{Key: val}, nil
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions utils/fileExist.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package utils

import (
"os"
"os"
)

func FileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
return false
}
}
return true
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
return false
}
}
return true
}

0 comments on commit cd1649f

Please sign in to comment.