sync function example
This commit is contained in:
parent
035796a549
commit
f44b2ff7f7
|
@ -69,11 +69,14 @@ func main() {
|
||||||
IgnoreFileNames: false,
|
IgnoreFileNames: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
logVerbosity := client.WithLogVerbosity(&client.SetLogVerbosityLevelRequest{
|
_, err := client.SetLogVerbosityLevel(&client.SetLogVerbosityLevelRequest{
|
||||||
NewVerbosityLevel: 0,
|
NewVerbosityLevel: 1,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("SetLogVerbosityLevel error: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
tdlibClient, err := client.NewClient(authorizer, logVerbosity)
|
tdlibClient, err := client.NewClient(authorizer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("NewClient error: %s", err)
|
log.Fatalf("NewClient error: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue