Update the tracker
(ctx context.Context, session *HubSession, req notehubMessage, rsp *notehubMessage, event EventFunc)
| 938 | |
| 939 | // Update the tracker |
| 940 | func hubNoteboxUpdateChangeTracker(ctx context.Context, session *HubSession, req notehubMessage, rsp *notehubMessage, event EventFunc) (err error) { |
| 941 | // Open the box |
| 942 | box, _, _, err2 := openHubNoteboxForDevice(ctx, session, req.DeviceUID, req.DeviceSN, req.ProductUID, req.DeviceEndpointID, event) |
| 943 | if err2 != nil { |
| 944 | err = err2 |
| 945 | return |
| 946 | } |
| 947 | |
| 948 | // Merge the tracked changes |
| 949 | err = box.UpdateChangeTracker(req.DeviceEndpointID, req.Since, req.Until) |
| 950 | if err != nil { |
| 951 | box.Close(ctx) |
| 952 | return err |
| 953 | } |
| 954 | |
| 955 | // Done |
| 956 | box.Close(ctx) |
| 957 | |
| 958 | return nil |
| 959 | } |
| 960 | |
| 961 | // Notefile Changes |
| 962 | func hubNotefileChanges(ctx context.Context, session *HubSession, req notehubMessage, rsp *notehubMessage, event EventFunc) (err error) { |
no test coverage detected