Skip to content

Commit

Permalink
feat: various DeviceInfos improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Dec 7, 2018
1 parent 7e15b86 commit b29628c
Show file tree
Hide file tree
Showing 14 changed files with 726 additions and 88 deletions.
8 changes: 8 additions & 0 deletions client/react-native/common/graphql/enums.gen.js
Expand Up @@ -258,6 +258,14 @@ export const ValueBertyP2pConnectionTypeInputConnectionType = {
3: 'CANNOT_CONNECT',
}

export const BertyPkgDeviceinfoTypeInputType = { Unknown: 0, Raw: 1, Json: 2 }

export const ValueBertyPkgDeviceinfoTypeInputType = {
0: 'Unknown',
1: 'Raw',
2: 'Json',
}

export const BertyNodeNullableTrueFalseInputNullableTrueFalse = {
Null: 0,
True: 1,
Expand Down
6 changes: 6 additions & 0 deletions client/react-native/common/schema.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions core/api/node/graphql/enums.gen.js
Expand Up @@ -258,6 +258,14 @@ export const ValueBertyP2pConnectionTypeInputConnectionType = {
3: 'CANNOT_CONNECT',
}

export const BertyPkgDeviceinfoTypeInputType = { Unknown: 0, Raw: 1, Json: 2 }

export const ValueBertyPkgDeviceinfoTypeInputType = {
0: 'Unknown',
1: 'Raw',
2: 'Json',
}

export const BertyNodeNullableTrueFalseInputNullableTrueFalse = {
Null: 0,
True: 1,
Expand Down
15 changes: 15 additions & 0 deletions core/api/node/graphql/gqlgen.gen.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

184 changes: 182 additions & 2 deletions core/api/node/graphql/graph/generated/generated.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions core/api/node/graphql/service.gen.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion core/cmd/berty/client.go
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io"
"os"
"time"

grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
Expand Down Expand Up @@ -116,7 +117,11 @@ func clientPrettyLogStream(recv func() (*node.LogEntry, error)) error {
return err
}

defer logger.Sync()
defer func() {
if err := logger.Sync(); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "%v\n", err)
}
}()
for {
entry, err := recv()
if err == io.EOF {
Expand Down
2 changes: 1 addition & 1 deletion core/go.mod
Expand Up @@ -68,7 +68,7 @@ require (
github.com/libp2p/go-buffer-pool v0.1.1 // indirect
github.com/libp2p/go-conn-security v0.1.13 // indirect
github.com/libp2p/go-conn-security-multistream v0.1.13 // indirect
github.com/libp2p/go-floodsub v0.10.2
github.com/libp2p/go-floodsub v0.10.2 // indirect
github.com/libp2p/go-flow-metrics v0.2.0 // indirect
github.com/libp2p/go-libp2p v6.0.19+incompatible
github.com/libp2p/go-libp2p-blankhost v0.3.13 // indirect
Expand Down

0 comments on commit b29628c

Please sign in to comment.