in the main server, this will not return empty string it does return empty in wsh, but all wstore methods are invalid in wsh mode, so that shouldn't be an issue
()
| 32 | // in the main server, this will not return empty string |
| 33 | // it does return empty in wsh, but all wstore methods are invalid in wsh mode, so that shouldn't be an issue |
| 34 | func GetClientId() string { |
| 35 | clientIdLock.Lock() |
| 36 | defer clientIdLock.Unlock() |
| 37 | if wavebase.IsDevMode() && cachedClientId == "" { |
| 38 | panic("cachedClientId is empty") |
| 39 | } |
| 40 | return cachedClientId |
| 41 | } |
| 42 | |
| 43 | func UpdateTabName(ctx context.Context, tabId, name string) error { |
| 44 | return WithTx(ctx, func(tx *TxWrap) error { |
no test coverage detected