DanXi-Dev / DanXi-swift

A Swift Reimplementation of DanXi
GNU Affero General Public License v3.0
13 stars 3 forks source link

[Enhancement] 重新设计FudanKit请求模型 #12

Closed singularity-s0 closed 7 months ago

singularity-s0 commented 8 months ago

应改用读写锁保护UIS凭据。每个服务在初次请求时通过UIS登录,后续请求均默认已经登陆,只有在返回错误时获取UIS凭据写锁并重新登录。

singularity-s0 commented 8 months ago

该问题和 #10 高度相关

fsy2001 commented 7 months ago

Instead of reader-writer lock, I decide to use barrier operation from Dispatch.