forked from Elara6331/itd
Switch to lrpc and use context to handle signals
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (c *Client) SetTime(t time.Time) error {
|
||||
return c.itdClient.Call(
|
||||
context.Background(),
|
||||
return c.client.Call(
|
||||
"ITD",
|
||||
"SetTime",
|
||||
t,
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user