(ctx context.Context)
| 98 | } |
| 99 | |
| 100 | func GetClientData(ctx context.Context) (*waveobj.Client, error) { |
| 101 | clientData, err := wstore.DBGetSingleton[*waveobj.Client](ctx) |
| 102 | if err != nil { |
| 103 | return nil, fmt.Errorf("error getting client data: %w", err) |
| 104 | } |
| 105 | return clientData, nil |
| 106 | } |
| 107 | |
| 108 | func SendWaveObjUpdate(oref waveobj.ORef) { |
| 109 | ctx, cancelFn := context.WithTimeout(context.Background(), 2*time.Second) |
no outgoing calls
no test coverage detected